Commit cfc73c32 authored by Jérome Perrin's avatar Jérome Perrin

reverse conditional for isTempObject


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12814 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6040bc86
......@@ -94,7 +94,7 @@ class FolderMixIn(ExtensionClass.Base):
from Products.ERP5Type import Document
# we get an object from factory only for first temp container object
# otherwise we get an id so we can use the classic way
if getattr(container, 'isTempObject', lambda: 0)():
if not getattr(container, 'isTempObject', lambda: 0)():
factory_name = 'newTemp%s' %(portal_type.replace(' ', ''))
m = getattr(Document, factory_name)
return m(container, new_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