Skip to content

Commit

Permalink
check if $params['is_completed'] is set
Browse files Browse the repository at this point in the history
  • Loading branch information
larssandergreen committed Oct 6, 2022
1 parent 6eefa69 commit 94e8977
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Mailing/BAO/Mailing.php
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ protected static function doSubmitActions(array $params, CRM_Mailing_DAO_Mailing
// Condition on the existence of a scheduled date.
if (!empty($params['scheduled_date']) && $params['scheduled_date'] != 'null' && empty($params['_skip_evil_bao_auto_schedule_'])) {

if ($params['is_completed'] !== 1) {
if (isset($params['is_completed']) && $params['is_completed'] !== 1) {
$mailingGroups = \Civi\Api4\MailingGroup::get()
->addSelect('group.id')
->addJoin('Group AS group', 'LEFT', ['entity_id', '=', 'group.id'])
Expand Down

0 comments on commit 94e8977

Please sign in to comment.