Commit 84a5c425 authored by jeroen_drenth's avatar jeroen_drenth Committed by Mike Keran
Browse files

Issue #2613556 by jeroen_drenth: Notice: Undefined index errors

parent 06c52f42
......@@ -194,7 +194,7 @@ function better_exposed_filters_preprocess_views_view(&$variables) {
$filters = array();
foreach ($variables['view']->filter as $filter) {
if ($filter->options['exposed']) {
$identifier = $filter->options['is_grouped'] ? $filter->options['group_info']['identifier'] : $filter->options['expose']['identifier'];
$identifier = !empty($filter->options['is_grouped']) ? $filter->options['group_info']['identifier'] : $filter->options['expose']['identifier'];
$filters[$identifier] = array(
'required' => $filter->options['expose']['required'] ? TRUE : FALSE,
);
......
......@@ -1109,7 +1109,7 @@ dateFormat: "dd-mm-yy"
// Form element is designated by the element ID which is user-
// configurable.
$filter_key = 'filter-' . ($filters[$label]->options['is_grouped'] ? $filters[$label]->options['group_info']['identifier'] : $label);
$filter_key = 'filter-' . (!empty($filters[$label]->options['is_grouped']) ? $filters[$label]->options['group_info']['identifier'] : $label);
$filter_id = $form['#info'][$filter_key]['value'];
// Token replacement on BEF Description fields.
......
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