Commit b9942982 authored by Vincent Pelletier's avatar Vincent Pelletier

Avoid duplicated computation of current node name.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15798 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 74573344
...@@ -505,7 +505,7 @@ class ActivityTool (Folder, UniqueObject): ...@@ -505,7 +505,7 @@ class ActivityTool (Folder, UniqueObject):
currentNode = self.getCurrentNode() currentNode = self.getCurrentNode()
# only distribute when we are the distributingNode or if it's empty # only distribute when we are the distributingNode or if it's empty
if (self.distributingNode == self.getCurrentNode()): if (self.distributingNode == currentNode):
self.distribute(len(self._nodes)) self.distribute(len(self._nodes))
elif not self.distributingNode: elif not self.distributingNode:
......
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