Commit 81ae0341 authored by git's avatar git Committed by Rick Hawkins
Browse files

Issue #3012046 by tame4tex, GaëlG: Undefined index: value in...

Issue #3012046 by tame4tex, GaëlG: Undefined index: value in BetterExposedFilters->buildOptionsForm()
parent 3e6a1e6c
......@@ -548,7 +548,10 @@ Title Desc|Z -> A</pre> Leave the replacement text blank to remove an option alt
$supported_types = array('entity_autocomplete', 'textfield');
$filter_id = $filter->options['expose']['identifier'];
if (in_array($filter_form[$filter_id]['#type'], $supported_types) || in_array($filter_form[$filter_id]['value']['#type'], $supported_types)) {
if ((isset($filter_form[$filter_id]['#type']) &&
in_array($filter_form[$filter_id]['#type'], $supported_types)) ||
(isset($filter_form[$filter_id]['value']) &&
(in_array($filter_form[$filter_id]['value']['#type'], $supported_types)))) {
// Allow users to specify placeholder text.
$bef_options[$label]['more_options']['placeholder_text'] = [
'#type' => 'textfield',
......
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