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

don't pass REQUEST to updateSelectionCheckedUidList, otherwise it will redirect to original form

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27293 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ca94eaf4
...@@ -57,7 +57,6 @@ ...@@ -57,7 +57,6 @@
from Products.ERP5Type.Message import translateString\n from Products.ERP5Type.Message import translateString\n
item_list = []\n item_list = []\n
request = context.REQUEST\n
portal = context.getPortalObject()\n portal = context.getPortalObject()\n
getObject = portal.portal_catalog.getObject\n getObject = portal.portal_catalog.getObject\n
selection_tool = portal.portal_selections\n selection_tool = portal.portal_selections\n
...@@ -80,7 +79,7 @@ else:\n ...@@ -80,7 +79,7 @@ else:\n
\n \n
# update selected uids \n # update selected uids \n
selection_tool.updateSelectionCheckedUidList(\n selection_tool.updateSelectionCheckedUidList(\n
list_selection_name, uids=uids, listbox_uid=listbox_uid, REQUEST=request)\n list_selection_name, uids=uids, listbox_uid=listbox_uid, REQUEST=None)\n
uids = selection_tool.getSelectionCheckedUidsFor(list_selection_name)\n uids = selection_tool.getSelectionCheckedUidsFor(list_selection_name)\n
\n \n
\n \n
...@@ -189,18 +188,17 @@ return context.Base_redirect(form_id, keep_items=dict(\n ...@@ -189,18 +188,17 @@ return context.Base_redirect(form_id, keep_items=dict(\n
<string>item_list</string> <string>item_list</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>request</string>
<string>portal</string> <string>portal</string>
<string>getObject</string> <string>getObject</string>
<string>selection_tool</string> <string>selection_tool</string>
<string>line_portal_type</string> <string>line_portal_type</string>
<string>cell_portal_type</string> <string>cell_portal_type</string>
<string>NotImplementedError</string> <string>NotImplementedError</string>
<string>None</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>item_uid</string> <string>item_uid</string>
<string>item</string> <string>item</string>
<string>item_variation</string> <string>item_variation</string>
<string>None</string>
<string>cell_found</string> <string>cell_found</string>
<string>cell</string> <string>cell</string>
<string>movement_to_update</string> <string>movement_to_update</string>
......
161 163
\ 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