Commit 8b7b1744 authored by Yoshinori Okuji's avatar Yoshinori Okuji

I think it is better to add +1 to the last id for a new id.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19364 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3ca8cc63
......@@ -193,7 +193,7 @@ class FolderMixIn(ExtensionClass.Base):
Id exist, then save the Id.
"""
try:
my_id = int(self.getLastId())
my_id = int(self.getLastId()) + 1
except TypeError:
my_id = 1
while self.hasContent(str(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