From: Ravish Nair Date: Fri, 23 Aug 2013 08:34:27 +0000 (+0530) Subject: -- CRM-13125 handled "in" and "notin" operator within stringParam function X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=79ce64deb218ba957450260b56e84c73ddf90a7f;p=civicrm-core.git -- 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 --- 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; } }