From: Pratik Joshi Date: Mon, 28 Oct 2013 06:52:35 +0000 (+0530) Subject: CRM-13657 : code improvement X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=499e172c0ca2fe1e17cae06f15aedf7bc61498fb;p=civicrm-core.git CRM-13657 : code improvement ---------------------------------------- * CRM-13657: Fatal error when accessing civicase http://issues.civicrm.org/jira/browse/CRM-13657 --- diff --git a/CRM/Case/BAO/Case.php b/CRM/Case/BAO/Case.php index a80e7c74be..d7b2f851ea 100644 --- a/CRM/Case/BAO/Case.php +++ b/CRM/Case/BAO/Case.php @@ -2790,7 +2790,7 @@ WHERE id IN (' . implode(',', $copiedActivityIds) . ')'; //edit - contact must be source or assignee //view - contact must be source/assignee/target $isTarget = $isAssignee = $isSource = FALSE; - $activityContacts = CRM_Core_PseudoConstant::activityContacts('name'); + $activityContacts = CRM_Core_OptionGroup::values('activity_contacts', FALSE, FALSE, FALSE, NULL, 'name'); $sourceID = CRM_Utils_Array::key('Activity Source', $activityContacts); $assigneeID = CRM_Utils_Array::key('Activity Assignees', $activityContacts); $targetID = CRM_Utils_Array::key('Activity Targets', $activityContacts);