Commit d502d266 authored by Sebastien Robin's avatar Sebastien Robin

while there is already a content, we must call again the right method instead of the default one

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15401 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2bbd0a9a
...@@ -195,7 +195,7 @@ class FolderMixIn(ExtensionClass.Base): ...@@ -195,7 +195,7 @@ class FolderMixIn(ExtensionClass.Base):
idGenerator = self._generateNextId idGenerator = self._generateNextId
my_id = idGenerator() my_id = idGenerator()
while self.hasContent(my_id): while self.hasContent(my_id):
my_id = self._generateNextId() my_id = idGenerator()
else: else:
my_id = str(self.portal_ids.generateNewId( id_group=id_group, my_id = str(self.portal_ids.generateNewId( id_group=id_group,
default=default, default=default,
......
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