*/
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) {
$activityTypes = $form->getActivityTypes($xml, $activitySetName);
}
else {
- $activityTypes = CRM_Case_XMLProcessor::allActivityTypes(FALSE, TRUE);
+ $activityTypes = CRM_Case_PseudoConstant::caseActivityType(FALSE, TRUE);
}
if (!$activityTypes) {