From 6d4916689a31f4364efd598b870b213e8b38aae9 Mon Sep 17 00:00:00 2001 From: Dave Greenberg Date: Fri, 22 May 2015 15:52:17 -0700 Subject: [PATCH] CRM-16503 - Remove obsolete special handling of case type filter in Case Detail Report. ---------------------------------------- * CRM-16503: CiviCase Detail Report: Filter by Case Type finds no results https://issues.civicrm.org/jira/browse/CRM-16503 --- CRM/Report/Form/Case/Detail.php | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/CRM/Report/Form/Case/Detail.php b/CRM/Report/Form/Case/Detail.php index 9483be3167..77071a324e 100644 --- a/CRM/Report/Form/Case/Detail.php +++ b/CRM/Report/Form/Case/Detail.php @@ -412,15 +412,7 @@ class CRM_Report_Form_Case_Detail extends CRM_Report_Form { !empty($this->_params['case_type_id_value']) ) { foreach ($this->_params['case_type_id_value'] as $key => $value) { - if (strpos($value, CRM_Core_DAO::VALUE_SEPARATOR) === FALSE) { - $value = CRM_Core_DAO::VALUE_SEPARATOR . $value . - CRM_Core_DAO::VALUE_SEPARATOR; - - $this->_params['case_type_id_value'][$key] = "'{$value}'"; - } - else { - $this->_params['case_type_id_value'][$key] = $value; - } + $this->_params['case_type_id_value'][$key] = $value; } } @@ -471,16 +463,6 @@ class CRM_Report_Form_Case_Detail extends CRM_Report_Form { $sql = "{$select} {$this->_from} {$this->_where}"; $countryCount = CRM_Core_DAO::singleValueQuery($sql); - //CaseType statistics - if (array_key_exists('filters', $statistics)) { - foreach ($statistics['filters'] as $id => $value) { - if ($value['title'] == 'Case Type') { - $statistics['filters'][$id]['value'] = 'Is ' . - $this->case_types[substr($statistics['filters'][$id]['value'], -3, -2 - )]; - } - } - } $statistics['counts']['case'] = array( 'title' => ts('Total Number of Cases '), 'value' => isset($statistics['counts']['rowsFound']) ? $statistics['counts']['rowsFound']['value'] : count($rows), -- 2.25.1