Skip to content

Commit

Permalink
Merge pull request #19874 from demeritcowboy/blank-assignee
Browse files Browse the repository at this point in the history
[WIP] dev/core#2473 - Don't crash when assignee left blank when creating followup on email activity
  • Loading branch information
seamuslee001 authored Mar 23, 2021
2 parents f8477c7 + 76dcf46 commit 2edd3d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Contact/Form/Task/EmailTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ protected function createFollowUpActivities($formValues, $activityId): string {
$params['followup_activity_subject'] = $formValues['followup_activity_subject'];
$params['followup_date'] = $formValues['followup_date'];
$params['target_contact_id'] = $this->_contactIds;
$params['followup_assignee_contact_id'] = explode(',', $formValues['followup_assignee_contact_id']);
$params['followup_assignee_contact_id'] = array_filter(explode(',', $formValues['followup_assignee_contact_id']));
$followupActivity = CRM_Activity_BAO_Activity::createFollowupActivity($activityId, $params);
$followupStatus = ts('A followup activity has been scheduled.');

Expand Down

0 comments on commit 2edd3d6

Please sign in to comment.