Send cancellation emails (task & information) thru events #22006
This commit is contained in:
parent
926f039177
commit
68ddd3eaa1
|
@ -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())
|
||||
|
|
|
@ -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())
|
||||
|
|
Reference in New Issue