From ae87f4841ce8541c33b0166ef5cb02761ccf0cec Mon Sep 17 00:00:00 2001
From: Yoshinori Okuji <yo@nexedi.com>
Date: Fri, 4 Jun 2004 15:19:15 +0000
Subject: [PATCH] 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
---
 product/ERP5Type/Document/Folder.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/product/ERP5Type/Document/Folder.py b/product/ERP5Type/Document/Folder.py
index cc149c8fb9..177568dcd9 100755
--- a/product/ERP5Type/Document/Folder.py
+++ b/product/ERP5Type/Document/Folder.py
@@ -72,8 +72,9 @@ class FolderMixIn(ExtensionClass.Base):
     self.portal_types.constructContent(type_name=portal_type,
                                        container=self,
                                        id=new_id,
-                                       **kw)
+                                       ) # **kw) removed due to CMF bug
     new_instance = self[new_id]
+    if kw is not None: new_instance._edit(force_update=1, **kw)
     if immediate_reindex: self.immediateReindexObject()
     return new_instance
 
-- 
2.30.9