Commit 977fc66e by Romain Courteaud

NotificationTool: do not call not possible workflow transition

1 parent e6010fce
......@@ -368,7 +368,7 @@ class NotificationTool(BaseTool):
event_list.append(event)
for event in event_list:
if event.isTempObject():
if event.isTempObject() or (not portal.portal_workflow.isTransitionPossible(event, 'start')):
event.send(**low_level_kw)
else:
event.start(**low_level_kw)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!