From a8d3b851af57bb61bbd7ebe242a1da634c6728f4 Mon Sep 17 00:00:00 2001 From: Nileema Date: Fri, 18 Apr 2014 16:20:00 +0530 Subject: [PATCH] HR fix to show case status based on filter column --- CRM/Case/PseudoConstant.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Case/PseudoConstant.php b/CRM/Case/PseudoConstant.php index f2700cc727..936ffb9185 100644 --- a/CRM/Case/PseudoConstant.php +++ b/CRM/Case/PseudoConstant.php @@ -89,16 +89,16 @@ class CRM_Case_PseudoConstant extends CRM_Core_PseudoConstant { * @return array - array reference of all case statues * @static */ - public static function caseStatus($column = 'label', $onlyActive = TRUE, $condition = NULL) { + public static function caseStatus($column = 'label', $onlyActive = TRUE, $condition = NULL, $cache = FALSE) { $cacheKey = "{$column}_" . (int)$onlyActive; if (!$condition) { $condition = 'AND filter = 0'; } - if (!isset(self::$caseStatus[$cacheKey])) { + if (!isset(self::$caseStatus[$cacheKey]) || $cache) { self::$caseStatus[$cacheKey] = CRM_Core_OptionGroup::values('case_status', FALSE, FALSE, FALSE, $condition, - $column, $onlyActive + $column, $onlyActive, $cache ); } -- 2.25.1