views_ui_config_item_form does not respect handler types correctly

Created on 11 October 2012, over 12 years ago
Updated 4 October 2024, 7 months ago

This is really minor and probably did not caused any issues in real life

Views is trying to fetch the base fields of relationship tables for proper automatic relationship.
For header/footer/empty though $form_state['type'] is 'header', even the actual type which
should be passed into the function is 'area'.

        $base_fields = views_fetch_fields($base, $form_state['type'], $view->display_handler->useGroupBy());

To be able to fix that it should do similar things to views_ui_add_item_form, so call ViewExecutable::viewHandlerTypes and check for the type.

$types = ViewUI::viewsHandlerTypes();
$ltitle = $types[$type]['ltitle'];
$section = $types[$type]['plural'];

if (!empty($types[$type]['type'])) {
$type = $types[$type]['type'];
}

🐛 Bug report
Status

Closed: outdated

Version

11.0 🔥

Component

views.module

Created by

🇩🇪Germany dawehner

Live updates comments and jobs are added and updated live.
  • VDC

    Related to the Views in Drupal Core initiative.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇦🇺Australia acbramley

    Given the IS mentions this may not be an actual issue, the amount of time since work has been done on this issue (8 years), and the fact there's been no update since #24 I'm going to close this as outdated.

    Please feel free to reopen with the requested information.

Production build 0.71.5 2024