Commit 790354ca authored by Yoshinori Okuji's avatar Yoshinori Okuji

It is not necessary to generate a new id for a temporary object, because it...

It is not necessary to generate a new id for a temporary object, because it will not be contained in any persistent objects.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20358 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 160ac101
......@@ -113,7 +113,7 @@ class FolderMixIn(ExtensionClass.Base):
pt = self._getTypesTool()
if container is None:
container = self
if id is None:
if id is None and not temp_object:
new_id = str(container.generateNewId( id_group=id_group,
default=default,
method=method))
......
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