simplification
authordemeritcowboy <demeritcowboy@hotmail.com>
Wed, 21 Apr 2021 14:09:20 +0000 (10:09 -0400)
committerdemeritcowboy <demeritcowboy@hotmail.com>
Wed, 21 Apr 2021 14:09:20 +0000 (10:09 -0400)
CRM/Activity/BAO/Activity.php

index 05b84c5e0ac5add19e7fc05d6db62602c2f7f72d..0f410c8d80f0d8fedba0e6830b094cf740532a80 100644 (file)
@@ -2628,8 +2628,6 @@ INNER JOIN  civicrm_option_group grp ON (grp.id = option_group_id AND grp.name =
           // This activity belongs to a case.
           $caseId = current($values['case_id']);
 
-          $activity['subject'] = $values['subject'];
-
           // Get the view and edit (update) links:
           $caseActionLinks =
             $actionLinks = array_intersect_key(
@@ -2676,10 +2674,10 @@ INNER JOIN  civicrm_option_group grp ON (grp.id = option_group_id AND grp.name =
         else {
           // Non-case activity
           $actionLinks = CRM_Activity_Selector_Activity::actionLinks(
-            CRM_Utils_Array::value('activity_type_id', $values),
-            CRM_Utils_Array::value('source_record_id', $values),
+            $values['activity_type_id'] ?? NULL,
+            $values['source_record_id'] ?? NULL,
             !empty($values['mailingId']),
-            CRM_Utils_Array::value('activity_id', $values)
+            $values['activity_id'] ?? NULL
           );
           $actionMask = array_sum(array_keys($actionLinks)) & $mask;