Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
drupal.org
better_exposed_filters
Commits
d1c7be6a
Commit
d1c7be6a
authored
Feb 29, 2020
by
Martin Keereman
Browse files
Issue #3114494 by neelam_wadhwani, amykhailova: Undefined index hierarchy
parent
a54546bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Plugin/better_exposed_filters/filter/RadioButtons.php
View file @
d1c7be6a
...
...
@@ -48,7 +48,7 @@ class RadioButtons extends FilterWidgetBase {
'#type'
=>
'checkbox'
,
'#title'
=>
$this
->
t
(
'Add nested all/none selection'
),
'#default_value'
=>
!
empty
(
$this
->
configuration
[
'select_all_none_nested'
]),
'#disabled'
=>
!
$filter
->
options
[
'expose'
][
'multiple'
]
||
!
$filter
->
options
[
'hierarchy'
],
'#disabled'
=>
(
!
$filter
->
options
[
'expose'
][
'multiple'
]
)
||
(
isset
(
$filter
->
options
[
'hierarchy'
])
&&
!
$filter
->
options
[
'hierarchy'
]
)
,
'#description'
=>
$this
->
t
(
'When a parent checkbox is checked, check all its children. If this option is disabled, edit the filter and check "Allow multiple selections" and edit the filter settings and check "Show hierarchy in dropdown".'
),
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment