Commit f9de6b77 authored by Alexandre Boeglin's avatar Alexandre Boeglin

An empty **kwd argument is not equal to 'None', but to '{}'.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2449 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bb2d4a70
......@@ -76,7 +76,7 @@ class FolderMixIn(ExtensionClass.Base):
id=new_id,
) # **kw) removed due to CMF bug
new_instance = container[new_id]
if kw is not None: new_instance._edit(force_update=1, **kw)
if kw != {} : new_instance._edit(force_update=1, **kw)
if immediate_reindex: new_instance.immediateReindexObject()
return new_instance
......
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