Skip to content

Commit

Permalink
GH-685 Bugfix: Prevent booking rules from being sent on inactive conf…
Browse files Browse the repository at this point in the history
…iguration
  • Loading branch information
georgmaisser committed Dec 3, 2024
1 parent 2526358 commit cf2b4a3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions classes/task/send_mail_by_rule_adhoc.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,11 @@ public function execute() {

// The first check needs to be if the rule has changed at all, eg. in any of the set values.
if (
$ruleinstance->rulename === 'days_before'
$ruleinstance->rulename === 'rule_daysbefore'
&& ($taskdata->rulejson !== $ruleinstance->rulejson)
) {
mtrace('send_mail_by_rule_adhoc task: Rule has changed. Mail was NOT SENT for option.'
mtrace(
'send_mail_by_rule_adhoc task: Rule has changed. Mail was NOT SENT for option.'
. $taskdata->optionid
. ' and user '
. $taskdata->userid
Expand Down

0 comments on commit cf2b4a3

Please sign in to comment.