From 79ce64deb218ba957450260b56e84c73ddf90a7f Mon Sep 17 00:00:00 2001 From: Ravish Nair Date: Fri, 23 Aug 2013 14:04:27 +0530 Subject: [PATCH] -- CRM-13125 handled "in" and "notin" operator within stringParam function ---------------------------------------- * CRM-13125: Write phpunit tests for reports shipped by hrreport extension http://issues.civicrm.org/jira/browse/CRM-13125 * CRM-13012fix: http://issues.civicrm.org/jira/browse/CRM-13012fix --- CRM/Report/Utils/Get.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CRM/Report/Utils/Get.php b/CRM/Report/Utils/Get.php index a3af5b0e64..15e0a7633e 100644 --- a/CRM/Report/Utils/Get.php +++ b/CRM/Report/Utils/Get.php @@ -105,6 +105,14 @@ class CRM_Report_Utils_Get { case 'nnll': $defaults["{$fieldName}_op"] = $fieldOP; break; + case 'in': + case 'notin': + $value = self::getTypedValue("{$fieldName}_value", CRM_Utils_Type::T_STRING); + if ($value !== NULL) { + $defaults["{$fieldName}_value"] = explode(",", $value); + $defaults["{$fieldName}_op"] = $fieldOP; + } + break; } } -- 2.25.1