Send cancellation emails (task & information) thru events #22006

This commit is contained in:
Nicolas Demonte 2019-02-26 09:48:24 +01:00
parent 926f039177
commit 68ddd3eaa1
2 changed files with 2 additions and 6 deletions

View File

@ -95,10 +95,7 @@ class CancelTaskAttribution(z3c.form.form.Form):
document.manage_delLocalRoles([responsible])
document.reindexObjectSecurity()
# remove relevant subtask
# remove relevant subtask (responsibles are notified by email with an Event)
self.context.manage_delObjects(subtask.id)
# notify responsible by mail it's removed
email_notification_of_canceled_subtask(subtask)
self.request.response.redirect(find_nontask(self.context).absolute_url())

View File

@ -82,8 +82,7 @@ class CancelInformation(z3c.form.form.Form):
self.context.manage_delLocalRoles([responsible_id])
self.context.reindexObjectSecurity()
email_notification_of_canceled_information(information)
# remove information (responsible is notified by email with an Event)
self.context.manage_delObjects(information.id)
self.request.response.redirect(self.context.absolute_url())