diff --git a/product/ERP5Type/Core/Folder.py b/product/ERP5Type/Core/Folder.py index c09b8b0fab14a8ea8fadd30a0ee458ca4d5d4119..ac822907873c14c411031bd86a080204595298ac 100644 --- a/product/ERP5Type/Core/Folder.py +++ b/product/ERP5Type/Core/Folder.py @@ -126,9 +126,7 @@ class FolderMixIn(ExtensionClass.Base): # The only case where the id is unused (because the new object is not added # to its parent) is when a temp object is created inside a non-temp object. - if id is '': - new_id = id - elif id is None and (temp_container or not temp_object): + if id is None and (temp_container or not temp_object): new_id_kw = {} if method is not None: new_id_kw['method'] = method