From: kurund Date: Thu, 29 May 2014 20:33:48 +0000 (+0530) Subject: fix code to work with api and UI, CRM-14474 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6f55186b2520e6622a590424189971c42596fd8f;p=civicrm-core.git fix code to work with api and UI, CRM-14474 ---------------------------------------- * CRM-14474: Update CiviCase XML processor to load from DB *or* file https://issues.civicrm.org/jira/browse/CRM-14474 --- diff --git a/CRM/Case/XMLProcessor/Process.php b/CRM/Case/XMLProcessor/Process.php index 4c4548cffb..1f57224fc4 100644 --- a/CRM/Case/XMLProcessor/Process.php +++ b/CRM/Case/XMLProcessor/Process.php @@ -395,7 +395,7 @@ AND a.is_deleted = 0 $count = CRM_Core_DAO::singleValueQuery($query, $sqlParams); // check for max instance - $caseType = CRM_Case_BAO_Case::getCaseType($params['caseID'], 'title'); + $caseType = CRM_Case_BAO_Case::getCaseType($params['caseID'], 'name'); $maxInstance = self::getMaxInstance($caseType, $params['activityTypeName']); return $maxInstance ? ($count < $maxInstance ? FALSE : TRUE) : FALSE;