Commit ea41d70f authored by arh1's avatar arh1 Committed by Mike Keran
Browse files

Issue #2573497 by arh1: Rediscovering #combine_param should respect user-entered value

parent 18a346f6
......@@ -81,7 +81,7 @@ function better_exposed_filters_views_api() {
*/
function bef_sort_combine_submit($form, &$form_state) {
// Same default as better_exposed_filters_exposed_form_plugin::options_form.
$combine_param = empty($form_state['#combine_param']) ? 'sort_bef_combine' : $form_state['#combine_param'];
$combine_param = empty($form_state['#combine_param']) ? $form_state['complete form']['#info']['sort-sort_bef_combine']['value'] : $form_state['#combine_param'];
if (empty($form_state['values'][$combine_param])) {
$form_state['values']['sort_by'] = $form_state['values']['sort_order'] = '';
}
......
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