Commit 5e5cfbc9 authored by merlinofchaos's avatar merlinofchaos

Issue #1154402 by aaronbauman: Prevent view context crash when fields are...

Issue #1154402 by aaronbauman: Prevent view context crash when fields are removed from a view but pane is not updated.
parent b5438d9c
......@@ -286,7 +286,7 @@ function views_content_views_panes_content_type_render($subtype, $conf, $panel_a
if ($allow['fields_override']) {
if ($conf['fields_override']) {
$fields = $view->get_items('field');
foreach ($conf['fields_override'] as $field => $display) {
foreach ($fields as $field => $display) {
$fields[$field]['exclude'] = empty($conf['fields_override'][$field]);
}
$view->display_handler->set_option('fields', $fields);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment