CRM-15002: fix case activity view
authorCiviCRM <info@civicrm.org>
Fri, 25 Jul 2014 07:37:48 +0000 (13:07 +0530)
committerCiviCRM <info@civicrm.org>
Fri, 25 Jul 2014 07:37:48 +0000 (13:07 +0530)
CRM/Case/PseudoConstant.php
CRM/Case/XMLProcessor/Report.php

index 8bade1c581dd26ed13b213c00f2e20cfdd2b1e4e..1ee036bacf6218f29b7b76a048e3a83e1dd83911 100644 (file)
@@ -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;
index 180f89a171a02460f7bdd0a9d9ad921dd3e93233..13d40f6f52e20d9c5e1cb698906866b95892ab72 100644 (file)
@@ -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])) {