From ed95477a7870f9beb77dcc34e5bf9bc6664bc25f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dani=C3=A8le=20Vanbaelinghem?= <daniele@nexedi.com>
Date: Wed, 14 Apr 2010 11:32:31 +0000
Subject: [PATCH] To Allow to add the object in portal_ids

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34548 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_skins/erp5_xhtml_style/Base_doAction.xml           | 4 +---
 product/ERP5/bootstrap/erp5_xhtml_style/bt/revision           | 2 +-
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doAction.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doAction.xml
index c2c3cdcf5c..26e25adfaf 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doAction.xml
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doAction.xml
@@ -84,11 +84,9 @@ if doAction0 in (\'object\', \'workflow\', \'folder\'):\n
     kw[\'dialog_category\'] = \'object_action\'\n
 # Otherwise, check if this is an automatic menu (add)\n
 elif doAction0 == \'add\':\n
-  new_id = context.generateNewId()\n
   type_name = \' \'.join(Base_doAction[1:])\n
   new_content = context.newContent(portal_type=type_name,\n
-                                   container=context,\n
-                                   id=str(new_id))\n
+                                   container=context)\n
   preserved_parameters[\'portal_status_message\'] = Base_translateString("Object created.")\n
   preserved_parameters[\'editable_mode\'] = 1\n
   redirect_url = \'%s/view\' % (new_content.absolute_url(), )\n
diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
index 707001d7af..6160058672 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
@@ -1 +1 @@
-927
\ No newline at end of file
+928
-- 
2.30.9