[Erp5-report] r34548 daniele - in /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style: Ski...

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Apr 14 13:32:32 CEST 2010


Author: daniele
Date: Wed Apr 14 13:32:31 2010
New Revision: 34548

URL: http://svn.erp5.org?rev=34548&view=rev
Log:
To Allow to add the object in portal_ids

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doAction.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doAction.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doAction.xml?rev=34548&r1=34547&r2=34548&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doAction.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doAction.xml [utf8] Wed Apr 14 13:32:31 2010
@@ -84,11 +84,9 @@
     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

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision?rev=34548&r1=34547&r2=34548&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision [utf8] Wed Apr 14 13:32:31 2010
@@ -1,1 +1,1 @@
-927
+928




More information about the Erp5-report mailing list