Skip to content

Commit

Permalink
[issue tracker] Email watchers when issue is updated or created (#8248)
Browse files Browse the repository at this point in the history
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 Dec 2, 2022
1 parent fc9a686 commit fadeec0
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 fadeec0

Please # to comment.