Commit 61f0964b authored by Vincent Pelletier's avatar Vincent Pelletier

Do not set last id when it's generated randomly. (It should never have been...

Do not set last id when it's generated randomly. (It should never have been here as long as random ids are used.)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16898 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2b0efea1
...@@ -175,7 +175,6 @@ class FolderMixIn(ExtensionClass.Base): ...@@ -175,7 +175,6 @@ class FolderMixIn(ExtensionClass.Base):
""" """
current_date = str(DateTime().Date()).replace("/", "") current_date = str(DateTime().Date()).replace("/", "")
my_id = self._generateRandomId() my_id = self._generateRandomId()
self._setLastId(my_id) # Make sure no reindexing happens
return "%s-%s" %(current_date, my_id) return "%s-%s" %(current_date, 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