Commit c7763678 authored by damiankloip's avatar damiankloip Committed by tim.plunkett

Issue #1720400 by damiankloip: Fixed views_handler_filter_user_name() throws...

Issue #1720400 by damiankloip: Fixed views_handler_filter_user_name() throws errors when using grouping filter option.
parent 02a35e24
......@@ -74,9 +74,21 @@ function exposed_validate(&$form, &$form_state) {
}
$identifier = $this->options['expose']['identifier'];
$values = drupal_explode_tags($form_state['values'][$identifier]);
$input = $form_state['values'][$identifier];
$uids = $this->validate_user_strings($form[$identifier], $values);
if ($this->options['is_grouped'] && isset($this->options['group_info']['group_items'][$input])) {
$this->operator = $this->options['group_info']['group_items'][$input]['operator'];
$input = $this->options['group_info']['group_items'][$input]['value'];
}
$values = drupal_explode_tags($input);
if (!$this->options['is_grouped'] || ($this->options['is_grouped'] && ($input != 'All'))) {
$uids = $this->validate_user_strings($form[$identifier], $values);
}
else {
$uids = FALSE;
}
if ($uids) {
$this->validated_exposed_input = $uids;
......
Markdown is supported
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