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
b0555511
Commit
b0555511
authored
Jun 03, 2017
by
Peacog
Committed by
Mike Keran
Jun 03, 2017
Browse files
Issue #2870661 by Peacog: Grouped filter with custom identifier not added to secondary options
parent
021cb64c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Plugin/views/exposed_form/BetterExposedFilters.php
View file @
b0555511
...
...
@@ -1137,7 +1137,14 @@ Off|No
// Check if this is a secondary form element.
if
(
$allow_secondary
&&
$settings
[
$label
][
'more_options'
][
'is_secondary'
])
{
$identifier
=
$form
[
'#info'
][
"filter-
$label
"
][
'value'
];
if
(
$filters
[
$label
]
->
options
[
'is_grouped'
])
{
$identifier
=
$filters
[
$label
]
->
options
[
'group_info'
][
'identifier'
];
$filter_info_name
=
"filter-
$identifier
"
;
}
else
{
$identifier
=
$filters
[
$label
]
->
options
[
'expose'
][
'identifier'
];
$filter_info_name
=
"filter-
$label
"
;
}
if
(
!
empty
(
$form
[
$identifier
]))
{
// Move exposed operators with exposed filters
if
(
!
empty
(
$this
->
display
->
display_options
[
'filters'
][
$identifier
][
'expose'
][
'use_operator'
]))
{
...
...
@@ -1147,8 +1154,8 @@ Off|No
}
$secondary
[
$identifier
]
=
$form
[
$identifier
];
unset
(
$form
[
$identifier
]);
$secondary
[
$identifier
][
'#title'
]
=
$form
[
'#info'
][
"
filter
-
$label
"
][
'label'
];
unset
(
$form
[
'#info'
][
"
filter
-
$label
"
]);
$secondary
[
$identifier
][
'#title'
]
=
$form
[
'#info'
][
$
filter
_info_name
][
'label'
];
unset
(
$form
[
'#info'
][
$
filter
_info_name
]);
}
}
}
...
...
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