Commit 3298924f authored by Peacog's avatar Peacog Committed by Rick Hawkins
Browse files

Issue #2902323 by Peacog, matthieuscarset, rlhawk: Exposed operator on a...

Issue #2902323 by Peacog, matthieuscarset, rlhawk: Exposed operator on a filter with a custom identifier not handled correctly
parent 84311312
......@@ -1215,11 +1215,11 @@ Title Desc|Z -> A</pre> Leave the replacement text blank to remove an option alt
$form['#info']["filter-$label"]['description'] = '';
// Check if the operator is exposed for this filter.
if (isset($this->view->getHandlers('filter')[$field_id])
&& $this->view->getHandlers('filter')[$field_id]['expose']['use_operator']
if (isset($this->view->getHandlers('filter')[$label])
&& $this->view->getHandlers('filter')[$label]['expose']['use_operator']
) {
// Include the exposed operator with the filter.
$operator_id = $this->view->getHandlers('filter')[$field_id]['expose']['operator_id'];
$operator_id = $this->view->getHandlers('filter')[$label]['expose']['operator_id'];
$form[$field_id][$operator_id] = $form[$operator_id];
unset($form[$operator_id]);
}
......
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