diff --git a/better_exposed_filters_exposed_form_plugin.inc b/better_exposed_filters_exposed_form_plugin.inc index 69b38c2..4a4ade0 100644 --- a/better_exposed_filters_exposed_form_plugin.inc +++ b/better_exposed_filters_exposed_form_plugin.inc @@ -1189,6 +1189,7 @@ Title Desc|Z -> A Leave the replacement value blank to remove an option al // render them as part of the fieldset. if (isset($form['#info']["filter-$label"]['label'])) { $form[$field_id]['#bef_title'] = $form['#info']["filter-$label"]['label']; + $temp_label = $form['#info']["filter-$label"]['label']; unset($form['#info']["filter-$label"]['label']); } if (!empty($options['more_options']['bef_filter_description'])) { @@ -1238,6 +1239,7 @@ Title Desc|Z -> A Leave the replacement value blank to remove an option al // render them as part of the fieldset. if (isset($form['#info']["filter-$label"]['label'])) { $form[$field_id]['#bef_title'] = $form['#info']["filter-$label"]['label']; + $temp_label = $form['#info']["filter-$label"]['label']; unset($form['#info']["filter-$label"]['label']); } if (!empty($options['more_options']['bef_filter_description'])) { @@ -1325,7 +1327,8 @@ Title Desc|Z -> A Leave the replacement value blank to remove an option al } $secondary[$identifier] = $form[$identifier]; unset($form[$identifier]); - $secondary[$identifier]['#title'] = $form['#info']["filter-$label"]['label']; + $secondary[$identifier]['#title'] = isset($form['#info']["filter-$label"]['label']) ? $form['#info']["filter-$label"]['label'] : $temp_label; + unset($form['#info']["filter-$label"]); unset($form['#info']["filter-$label"]); } }