replace function that doesn't cache properly with the one it ends up calling which...
authordemeritcowboy <demeritcowboy@hotmail.com>
Mon, 15 Jun 2020 14:32:39 +0000 (10:32 -0400)
committerdemeritcowboy <demeritcowboy@hotmail.com>
Mon, 15 Jun 2020 14:32:39 +0000 (10:32 -0400)
CRM/Case/XMLProcessor/Process.php
CRM/Case/XMLProcessor/Report.php

index d1f63c975b57727ec522185399db8b5b44cfbf0f..6bffb852dd88434b1218146bb3f405b7c8d3a932 100644 (file)
@@ -404,7 +404,7 @@ AND        a.is_deleted = 0
    */
   public function createActivity($activityTypeXML, &$params) {
     $activityTypeName = (string) $activityTypeXML->name;
-    $activityTypes = &$this->allActivityTypes(TRUE, TRUE);
+    $activityTypes = CRM_Case_PseudoConstant::caseActivityType(TRUE, TRUE);
     $activityTypeInfo = $activityTypes[$activityTypeName] ?? NULL;
 
     if (!$activityTypeInfo) {
index 1fdff0091560ac78eaddb1df5ada09e492a3ca8e..6479980996dcb28fbd3f910cc09635ebb8a5bc69 100644 (file)
@@ -771,7 +771,7 @@ LIMIT  1
       $activityTypes = $form->getActivityTypes($xml, $activitySetName);
     }
     else {
-      $activityTypes = CRM_Case_XMLProcessor::allActivityTypes(FALSE, TRUE);
+      $activityTypes = CRM_Case_PseudoConstant::caseActivityType(FALSE, TRUE);
     }
 
     if (!$activityTypes) {