--HR-368 Changes for find case result
authorPoonam <poonam@poonam.(none)>
Wed, 4 Jun 2014 13:59:53 +0000 (19:29 +0530)
committerPoonam <poonam@poonam.(none)>
Wed, 4 Jun 2014 13:59:53 +0000 (19:29 +0530)
CRM/Case/BAO/Query.php

index 9cb19932c750f3010628c3d8186ac094fbb4714c..1b7e083e99067b733efe764be97a37f79314cf19 100644 (file)
@@ -300,7 +300,7 @@ class CRM_Case_BAO_Query {
           $names[] = $caseTypes[$caseTypeId];
         }
 
-        $query->_where[$grouping][] = "(civicrm_case.case_type_id LIKE '%{$val}%')";
+        $query->_where[$grouping][] = "(civicrm_case.case_type_id IN (" . implode(',', $val) . "))";
 
         $query->_qill[$grouping][] = ts('Case Type is %1', array(1 => implode(' ' . ts('or') . ' ', $names)));
         $query->_tables['civicrm_case'] = $query->_whereTables['civicrm_case'] = 1;