From 7de0b24df7158ce0f058db6fa366b81d943d5207 Mon Sep 17 00:00:00 2001 From: Jamie McClelland Date: Fri, 5 Oct 2018 16:55:51 -0400 Subject: [PATCH] ensure search on survey results works properly https://lab.civicrm.org/dev/core/issues/422 --- CRM/Activity/BAO/Query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Activity/BAO/Query.php b/CRM/Activity/BAO/Query.php index a450337ee2..e964a8aa13 100644 --- a/CRM/Activity/BAO/Query.php +++ b/CRM/Activity/BAO/Query.php @@ -325,7 +325,7 @@ class CRM_Activity_BAO_Query { case 'activity_result': if (is_array($value)) { $safe = []; - foreach ($values as $id => $k) { + foreach ($value as $id => $k) { $safe[] = "'" . CRM_Utils_Type::escape($k, 'String') . "'"; } $query->_where[$grouping][] = "civicrm_activity.result IN (" . implode(',', $safe) . ")"; -- 2.25.1