diff --git a/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Base_createNewFile.xml b/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Base_createNewFile.xml index e874965b15812773815fa99156ad35e38baaa887..e0c88e04beb76992e102feebcd0f3e285c8e984a 100644 --- a/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Base_createNewFile.xml +++ b/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Base_createNewFile.xml @@ -89,7 +89,7 @@ if file.filename not in [\'\', None]:\n is_authorized = 0\n \n if not is_authorized:\n - return context.Base_redirect(\n + return context.Base_redirect(form_id,\n keep_items={\'portal_status_message\':\n translateString(\n "You are not allowed to create this object.")})\n @@ -103,7 +103,7 @@ if file.filename not in [\'\', None]:\n return document.Base_redirect(\'view\', \n keep_items=dict(portal_status_message=message))\n else:\n - return context.Base_redirect(\'view\', \n + return context.Base_redirect(form_id, \n keep_items=dict(portal_status_message=message))\n </string> </value> </item> @@ -115,7 +115,7 @@ if file.filename not in [\'\', None]:\n </item> <item> <key> <string>_params</string> </key> - <value> <string>portal_type, title, reference, short_title, language, version, description, file, form_id=\'view\', **kw</string> </value> + <value> <string>form_id=\'view\', portal_type, title, reference, short_title, language, version, description, file, form_id=\'view\', **kw</string> </value> </item> <item> <key> <string>errors</string> </key> @@ -135,12 +135,13 @@ if file.filename not in [\'\', None]:\n <dictionary> <item> <key> <string>co_argcount</string> </key> - <value> <int>9</int> </value> + <value> <int>10</int> </value> </item> <item> <key> <string>co_varnames</string> </key> <value> <tuple> + <string>form_id</string> <string>portal_type</string> <string>title</string> <string>reference</string> @@ -185,6 +186,15 @@ if file.filename not in [\'\', None]:\n <value> <tuple> <string>view</string> + <none/> + <none/> + <none/> + <none/> + <none/> + <none/> + <none/> + <none/> + <string>view</string> </tuple> </value> </item> diff --git a/bt5/erp5_base/bt/revision b/bt5/erp5_base/bt/revision index 6001de1bbe0143617a4d4e6b8a85cffc388d987a..d63356f400186f3b5403b1cc947a715ef2ee118a 100644 --- a/bt5/erp5_base/bt/revision +++ b/bt5/erp5_base/bt/revision @@ -1 +1 @@ -595 \ No newline at end of file +596 \ No newline at end of file