From 46a58669f9b66cc410bc7dd181b79d15ce75eb30 Mon Sep 17 00:00:00 2001 From: Poonam Date: Wed, 4 Jun 2014 19:29:53 +0530 Subject: [PATCH] --HR-368 Changes for find case result --- CRM/Case/BAO/Query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Case/BAO/Query.php b/CRM/Case/BAO/Query.php index 9cb19932c7..1b7e083e99 100644 --- a/CRM/Case/BAO/Query.php +++ b/CRM/Case/BAO/Query.php @@ -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; -- 2.25.1