Commit 977fc66e authored by Romain Courteaud's avatar Romain Courteaud

NotificationTool: do not call not possible workflow transition

parent e6010fce
...@@ -368,7 +368,7 @@ class NotificationTool(BaseTool): ...@@ -368,7 +368,7 @@ class NotificationTool(BaseTool):
event_list.append(event) event_list.append(event)
for event in event_list: for event in event_list:
if event.isTempObject(): if event.isTempObject() or (not portal.portal_workflow.isTransitionPossible(event, 'start')):
event.send(**low_level_kw) event.send(**low_level_kw)
else: else:
event.start(**low_level_kw) event.start(**low_level_kw)
......
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