Commit ae87f484 authored by Yoshinori Okuji's avatar Yoshinori Okuji

XXX Do not pass **kw to constructContent but use _edit, due to a CMF bug. Look...

XXX Do not pass **kw to constructContent but use _edit, due to a CMF bug. Look at <http://collector.zope.org/CMF/248> for more details.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@967 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 79e0dca5
...@@ -72,8 +72,9 @@ class FolderMixIn(ExtensionClass.Base): ...@@ -72,8 +72,9 @@ class FolderMixIn(ExtensionClass.Base):
self.portal_types.constructContent(type_name=portal_type, self.portal_types.constructContent(type_name=portal_type,
container=self, container=self,
id=new_id, id=new_id,
**kw) ) # **kw) removed due to CMF bug
new_instance = self[new_id] new_instance = self[new_id]
if kw is not None: new_instance._edit(force_update=1, **kw)
if immediate_reindex: self.immediateReindexObject() if immediate_reindex: self.immediateReindexObject()
return new_instance 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