Skip to content
Snippets Groups Projects
Commit c7763678 authored by Damian Lee's avatar Damian Lee Committed by Tim Plunkett
Browse files

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
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment