From b5acb7d869f117662006641ba831d668f8009628 Mon Sep 17 00:00:00 2001 From: Matthew Grasmick Date: Sun, 4 May 2014 18:41:17 -0400 Subject: [PATCH] Issue #2036473: Fixing operator for grouped filter with multi-value options. --- includes/handlers.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/includes/handlers.inc b/includes/handlers.inc index 4346133..0d7700b 100644 --- a/includes/handlers.inc +++ b/includes/handlers.inc @@ -1020,7 +1020,12 @@ class views_many_to_one_helper { } else { $value = is_array($value) ? array_pop($value) : $value; - $operator = '='; + if (is_array($value) && count($value) > 1) { + $operator = 'IN'; + } + else { + $operator = '='; + } } $add_condition = FALSE; } -- 1.8.5.2 (Apple Git-48)