Commit 7e6cbe1d authored by Ivan Tyagov's avatar Ivan Tyagov

When creating object always pass editable_mode so user is redirected...

When creating object always pass editable_mode so user is redirected explicitly to objects edit form.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36581 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4e40f4c2
......@@ -62,7 +62,9 @@ if not allowed_type_list:\n
# newContent will add the first allowed type when we do not specify portal_type=\n
new_object = context.newContent(portal_type=allowed_type_list[0])\n
\n
return context.ERP5Site_redirect(\'%s/view\' % (new_object.absolute_url(), ), keep_items={\'portal_status_message\': Base_translateString("Object created.")})\n
return context.ERP5Site_redirect(\'%s/view\' % (new_object.absolute_url(), ), \n
keep_items={\'portal_status_message\': Base_translateString("Object created."),\n
\'editable_mode\': 1})\n
</string> </value>
</item>
<item>
......
954
\ No newline at end of file
955
\ No newline at end of file
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