From: Erik Hommel Date: Tue, 14 Nov 2023 10:04:16 +0000 (+0100) Subject: fix issue #4770 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=81305bf57fd44c0e3362ce0003f7a72a777ffbd4;p=civicrm-core.git fix issue #4770 Making sure the followup_assignee_contact_id is an array so all assignees are saved, not just the first one --- diff --git a/CRM/Activity/BAO/Activity.php b/CRM/Activity/BAO/Activity.php index 8405e21c4b..4f85b7ae0f 100644 --- a/CRM/Activity/BAO/Activity.php +++ b/CRM/Activity/BAO/Activity.php @@ -1830,6 +1830,9 @@ AND cl.modified_id = c.id $followupParams['activity_type_id'] = $params['followup_activity_type_id']; // Get Subject of Follow-up Activiity, CRM-4491 $followupParams['subject'] = $params['followup_activity_subject'] ?? NULL; + if (!is_array($params['followup_assignee_contact_id'])) { + $params['followup_assignee_contact_id'] = explode(",", $params['followup_assignee_contact_id']); + } $followupParams['assignee_contact_id'] = $params['followup_assignee_contact_id'] ?? NULL; // Create target contact for followup.