Commit 42cfe88c authored by Jérome Perrin's avatar Jérome Perrin

Make it possible to unset distributingNode


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7255 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 24b8b5bb
...@@ -416,7 +416,7 @@ class ActivityTool (Folder, UniqueObject): ...@@ -416,7 +416,7 @@ class ActivityTool (Folder, UniqueObject):
security.declarePublic('manage_setDistributingNode') security.declarePublic('manage_setDistributingNode')
def manage_setDistributingNode(self, distributingNode, REQUEST=None): def manage_setDistributingNode(self, distributingNode, REQUEST=None):
""" set the distributing node """ """ set the distributing node """
if self._isValidNodeName(distributingNode): if not distributingNode or self._isValidNodeName(distributingNode):
self.distributingNode = distributingNode self.distributingNode = distributingNode
if REQUEST is not None: if REQUEST is not None:
REQUEST.RESPONSE.redirect( REQUEST.RESPONSE.redirect(
......
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