-- CRM-13125 handled "in" and "notin" operator within stringParam function
authorRavish Nair <ravish.nair@webaccess.co.in>
Fri, 23 Aug 2013 08:34:27 +0000 (14:04 +0530)
committerRavish Nair <ravish.nair@webaccess.co.in>
Fri, 23 Aug 2013 08:34:27 +0000 (14:04 +0530)
----------------------------------------
* 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

index a3af5b0e64fc33fa3b783159370182b06cb615ba..15e0a7633e572a9018d16f4f4e6d7197648a4b45 100644 (file)
@@ -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;
     }
   }