Commit d8b8b318 authored by Romain Courteaud's avatar Romain Courteaud

Try to get the status message from the request

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19187 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 970b0285
......@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......@@ -135,9 +132,11 @@ except ValidationFailed, error_message:\n
\'%s/%s\' % (context.absolute_url(), form_id),\n
keep_items={\'portal_status_message\': message}, **kw)\n
\n
portal_status_message = request.get(\'portal_status_message\', N_(\'Status changed.\'))\n
\n
return context.ERP5Site_redirect(\n
\'%s/%s\' % (context.absolute_url(), form_id),\n
keep_items={\'portal_status_message\': N_(\'Status changed.\')})\n
keep_items={\'portal_status_message\': portal_status_message})\n
</string> </value>
</item>
<item>
......@@ -225,6 +224,7 @@ return context.ERP5Site_redirect(\n
<string>hasattr</string>
<string>message</string>
<string>str</string>
<string>portal_status_message</string>
</tuple>
</value>
</item>
......
490
\ No newline at end of file
491
\ 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