From 81305bf57fd44c0e3362ce0003f7a72a777ffbd4 Mon Sep 17 00:00:00 2001 From: Erik Hommel Date: Tue, 14 Nov 2023 11:04:16 +0100 Subject: [PATCH] fix issue #4770 Making sure the followup_assignee_contact_id is an array so all assignees are saved, not just the first one --- CRM/Activity/BAO/Activity.php | 3 +++ 1 file changed, 3 insertions(+) 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. -- 2.25.1