Commit f6963497 authored by Jérome Perrin's avatar Jérome Perrin

keep selection_name & selection_index when adding a transaction line (not to

break prev & next button)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13511 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7fea6b2e
...@@ -74,9 +74,10 @@ use.\n ...@@ -74,9 +74,10 @@ use.\n
\'\'\'\n \'\'\'\n
N_ = context.Base_translateString\n N_ = context.Base_translateString\n
context.newContent(portal_type=portal_type)\n context.newContent(portal_type=portal_type)\n
return context.REQUEST.RESPONSE.redirect(\n return context.Base_redirect(\'view\', keep_items=dict(\n
\'%s/view?portal_status_message=%s\'\n portal_status_message=N_(\'Accounting Transaction Line added.\'),\n
% (context.absolute_url(), N_(\'Accounting Transaction Line added.\') ))\n selection_name=selection_name,\n
selection_index=selection_index))\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -93,7 +94,7 @@ return context.REQUEST.RESPONSE.redirect(\n ...@@ -93,7 +94,7 @@ return context.REQUEST.RESPONSE.redirect(\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>portal_type=\'Accounting Transaction Line\'</string> </value> <value> <string>portal_type=\'Accounting Transaction Line\', selection_name=\'\', selection_index=0</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -113,16 +114,19 @@ return context.REQUEST.RESPONSE.redirect(\n ...@@ -113,16 +114,19 @@ return context.REQUEST.RESPONSE.redirect(\n
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>1</int> </value> <value> <int>3</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>portal_type</string> <string>portal_type</string>
<string>selection_name</string>
<string>selection_index</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>N_</string> <string>N_</string>
<string>dict</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -136,6 +140,8 @@ return context.REQUEST.RESPONSE.redirect(\n ...@@ -136,6 +140,8 @@ return context.REQUEST.RESPONSE.redirect(\n
<value> <value>
<tuple> <tuple>
<string>Accounting Transaction Line</string> <string>Accounting Transaction Line</string>
<string></string>
<int>0</int>
</tuple> </tuple>
</value> </value>
</item> </item>
......
209 218
\ No newline at end of file \ 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