Commit 8fbe37e1 authored by Vincent Pelletier's avatar Vincent Pelletier

Fix a stupid syntax error which triggered a bug when, at object creation, id...

Fix a stupid syntax error which triggered a bug when, at object creation, id generator generates an already allocated id.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12623 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 786c8a09
...@@ -182,7 +182,7 @@ class FolderMixIn(ExtensionClass.Base): ...@@ -182,7 +182,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 = _generateNextId() my_id = self._generateNextId()
else: else:
my_id = str(self.portal_ids.generateNewId(id_group=id_group,default=default,method=method)) my_id = str(self.portal_ids.generateNewId(id_group=id_group,default=default,method=method))
return my_id return my_id
......
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