Commit 6993cc96 authored by Jérome Perrin's avatar Jérome Perrin

use appropriate event portal type, even when not storing the event.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34091 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7bfdde2a
......@@ -339,8 +339,9 @@ class NotificationTool(BaseTool):
if event_keyword_argument_dict is None:
event_keyword_argument_dict = {}
for notifier in notifier_list:
if notifier in available_notifier_list and store_as_event:
if notifier in available_notifier_list:
event = self.getDefaultModule(notifier).newContent(portal_type=notifier,
temp_object=not store_as_event,
**event_keyword_argument_dict)
else:
from Products.ERP5Type.Document import newTempEvent
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment