From: CiviCRM Date: Fri, 25 Jul 2014 07:37:48 +0000 (+0530) Subject: CRM-15002: fix case activity view X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a953bf2006fd5891d1363392964b92267f62158f;p=civicrm-core.git CRM-15002: fix case activity view --- diff --git a/CRM/Case/PseudoConstant.php b/CRM/Case/PseudoConstant.php index 8bade1c581..1ee036bacf 100644 --- a/CRM/Case/PseudoConstant.php +++ b/CRM/Case/PseudoConstant.php @@ -202,7 +202,7 @@ class CRM_Case_PseudoConstant extends CRM_Core_PseudoConstant { * @access public * @static * - * @return array - array reference of all activty types. + * @return array - array reference of all activity types. */ public static function &caseActivityType($indexName = TRUE, $all = FALSE) { $cache = (int) $indexName . '_' . (int) $all; diff --git a/CRM/Case/XMLProcessor/Report.php b/CRM/Case/XMLProcessor/Report.php index 180f89a171..13d40f6f52 100644 --- a/CRM/Case/XMLProcessor/Report.php +++ b/CRM/Case/XMLProcessor/Report.php @@ -289,7 +289,7 @@ WHERE a.id = %1 if ($dao->activity_type_id == CRM_Core_OptionGroup::getValue('activity_type', 'Email', 'name')) { $anyActivity = TRUE; } - $activityTypes = $this->allActivityTypes(FALSE, $anyActivity); + $activityTypes = CRM_Case_PseudoConstant::caseActivityType(FALSE, $anyActivity); $activityTypeInfo = NULL; if (isset($activityTypes[$dao->activity_type_id])) {