diff --git a/includes/handlers.inc b/includes/handlers.inc index 2a33d5d..a38c3dd 100644 --- a/includes/handlers.inc +++ b/includes/handlers.inc @@ -1001,11 +1001,17 @@ class views_many_to_one_helper { $options = $this->handler->options; $operator = $this->handler->operator; $formula = !empty($this->formula); - $value = $this->handler->value; + if (empty($options['group'])) { $options['group'] = 0; } + if (isset($options['group']) && ($options['group'] == 1) && isset($this->handler->group_info)) { + $value = $this->handler->group_info; + } else { + $value = $this->handler->value; + } + // add_condition determines whether a single expression is enough(FALSE) or the // conditions should be added via an db_or()/db_and() (TRUE). $add_condition = TRUE;