diff --git a/includes/wf_crm_webform_postprocess.inc b/includes/wf_crm_webform_postprocess.inc index cef63bffa..42410846d 100644 --- a/includes/wf_crm_webform_postprocess.inc +++ b/includes/wf_crm_webform_postprocess.inc @@ -1450,7 +1450,7 @@ class wf_crm_webform_postprocess extends wf_crm_webform_base { $this->processAttachments('activity', $n, $activity['id'], empty($params['id'])); } if (!empty($params['assignee_contact_id'])) { - if (wf_crm_get_civi_setting('activity_assignee_notification')) { + if (wf_crm_get_civi_setting('activity_assignee_notification') && !in_array($params['activity_type_id'], wf_crm_get_civi_setting('do_not_notify_assignees_for'))) { // Send email to assignees. TODO: Move to CiviCRM API? $assignees = wf_crm_apivalues('contact', 'get', [ 'id' => ['IN' => (array) $params['assignee_contact_id']],