Skip to content

Commit

Permalink
[issue tracker] Email watchers when issue is updated or created (aces…
Browse files Browse the repository at this point in the history
…#8248)

When people are added to the watchers list, they do not receive a notification email upon creation/update of the issue. This fixes the bug and allows notification to be sent to watchers when an issue is created/updated.
  • Loading branch information
cmadjar authored and zaliqarosli committed Mar 6, 2023
1 parent ad8c6b0 commit 902d900
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/issue_tracker/php/edit.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,13 @@ class Edit extends \NDB_Page implements ETagCalculator
'issueID' => $issueID,
]
);
// Send email to watchers if they are not the assignee
if (isset($issueValues['assignee'])
&& $issueValues['assignee'] == $usersWatching
) {
continue;
}
$this->emailUser($issueID, $usersWatching, $user);
}
}
}
Expand Down

0 comments on commit 902d900

Please # to comment.