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
af2ea854
Commit
af2ea854
authored
Jul 28, 2017
by
ojohansson
Committed by
Mike Keran
Jul 28, 2017
Browse files
Issue #2890222 by olofjohansson: Undefined offset: 1 in bef_sort_combine_submit()
parent
80233c4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
better_exposed_filters.module
View file @
af2ea854
...
...
@@ -296,8 +296,9 @@ function _bef_preprocess_nested_elements(array &$variables) {
*/
function
bef_sort_combine_submit
(
$form
,
FormStateInterface
$form_state
)
{
$sortBy
=
$sortOrder
=
''
;
if
(
$form_state
->
hasValue
(
'sort_bef_combine'
))
{
list
(
$sortBy
,
$sortOrder
)
=
explode
(
' '
,
$form_state
->
getValue
(
'sort_bef_combine'
));
$combined
=
$form_state
->
getValue
(
'sort_bef_combine'
);
if
(
!
empty
(
$combined
))
{
list
(
$sortBy
,
$sortOrder
)
=
explode
(
' '
,
$combined
);
}
$form_state
->
setValue
(
'sort_by'
,
$sortBy
);
$form_state
->
setValue
(
'sort_order'
,
$sortOrder
);
...
...
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