Fix Failing Activity Test
authorSeamus Lee <seamuslee001@gmail.com>
Sat, 11 May 2019 07:25:11 +0000 (17:25 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Sat, 11 May 2019 20:38:08 +0000 (06:38 +1000)
CRM/Activity/BAO/Activity.php

index 4374bfeba1562cda09478785e1adb18ab5424578..56f12e5288fedc56aff4b034db6d47029e44dd54 100644 (file)
@@ -766,7 +766,7 @@ class CRM_Activity_BAO_Activity extends CRM_Activity_DAO_Activity {
         'subject' => CRM_Utils_Array::value('subject', $activity),
         'assignee_contact_name' => CRM_Utils_Array::value('assignee_contact_sort_name', $activity, []),
         'source_contact_id' => CRM_Utils_Array::value('source_contact_id', $activity),
-        'source_contact_name' => CRM_Utils_Array::value('source_contact_name', $activity),
+        'source_contact_name' => CRM_Utils_Array::value('source_contact_sort_name', $activity),
       ];
       $activities[$id]['activity_type_name'] = CRM_Core_PseudoConstant::getName('CRM_Activity_BAO_Activity', 'activity_type_id', $activity['activity_type_id']);
       $activities[$id]['activity_type'] = CRM_Core_PseudoConstant::getLabel('CRM_Activity_BAO_Activity', 'activity_type_id', $activity['activity_type_id']);