From 7e61908b68b8b68fe82c15011db800782aac1911 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 28 May 2015 16:45:05 -0400 Subject: [PATCH] Correct FK entity for activity api pseudo-fields --- api/v3/Activity.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/v3/Activity.php b/api/v3/Activity.php index 05eb4aee6b..bbdeca3471 100644 --- a/api/v3/Activity.php +++ b/api/v3/Activity.php @@ -190,7 +190,7 @@ function _civicrm_api3_activity_create_spec(&$params) { 'title' => 'Activity Assignee', 'description' => 'Contact(s) assigned to this activity.', 'type' => 1, - 'FKClassName' => 'CRM_Activity_DAO_ActivityContact', + 'FKClassName' => 'CRM_Contact_DAO_Contact', 'FKApiName' => 'Contact', ); $params['target_contact_id'] = array( @@ -198,7 +198,7 @@ function _civicrm_api3_activity_create_spec(&$params) { 'title' => 'Activity Target', 'description' => 'Contact(s) participating in this activity.', 'type' => 1, - 'FKClassName' => 'CRM_Activity_DAO_ActivityContact', + 'FKClassName' => 'CRM_Contact_DAO_Contact', 'FKApiName' => 'Contact', ); @@ -207,7 +207,7 @@ function _civicrm_api3_activity_create_spec(&$params) { 'title' => 'Activity Source Contact', 'description' => 'Person who created this activity. Defaults to current user.', 'type' => 1, - 'FKClassName' => 'CRM_Activity_DAO_ActivityContact', + 'FKClassName' => 'CRM_Contact_DAO_Contact', 'api.default' => 'user_contact_id', 'FKApiName' => 'Contact', ); -- 2.25.1