Commit e0597996 authored by Romain Courteaud's avatar Romain Courteaud

Only prevent successive direct bang calls.

parent 54612b28
......@@ -939,8 +939,7 @@ class SlapTool(BaseTool):
transition = self.getPortalObject().portal_workflow.getInfoFor(
software_instance, 'action', wf_id='instance_slap_interface_workflow')
if (self._getLastData(key) != timestamp) and \
(transition != 'bang'):
if (self._getLastData(key) != timestamp):
software_instance.bang(bang_tree=True, comment=message)
self._storeLastData(key, str(int(software_instance.getModificationDate())))
return "OK"
......
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