Commit e814b2e1 authored by Mike Keran's avatar Mike Keran
Browse files

Issue #2271679 by veroniqueg, mikeker: Notice: Undefined index: label en...

Issue #2271679 by veroniqueg, mikeker: Notice: Undefined index: label en better_exposed_filters_exposed_form_plugin->exposed_form_alter() (línea 1366 of.../sites/all/modules/better_exposed_filters/better_exposed_filters_exposed_form_plugin.inc)
parent 77d3e25a
......@@ -1741,11 +1741,11 @@ dateFormat: "dd-mm-yy"
// Some elements can have multiple children, for example min/max
// fields on an in-between filter. In those cases Add the label
// to the first element.
$secondary[$identifier][$children[0]]['#title'] = $form['#info'][$filter_key]['label'];
$secondary[$identifier][$children[0]]['#title'] = isset($form['#info'][$filter_key]['label']) ? $form['#info'][$filter_key]['label'] : '';
unset($form['#info'][$filter_key]);
}
else {
$secondary[$identifier]['#title'] = $form['#info'][$filter_key]['label'];
$secondary[$identifier]['#title'] = isset($form['#info'][$filter_key]['label']) ? $form['#info'][$filter_key]['label'] : '';
unset($form['#info'][$filter_key]);
}
......
Supports Markdown
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