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

Reset selection when we change proxy listbox ids

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35201 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fb1baf15
...@@ -60,14 +60,10 @@ if Base_updateListboxSelection is not None:\n ...@@ -60,14 +60,10 @@ if Base_updateListboxSelection is not None:\n
\n \n
context.REQUEST.set("proxy_listbox_id", select_dialog )\n context.REQUEST.set("proxy_listbox_id", select_dialog )\n
\n \n
# Remove portal_type from selection params when changing the listbox\n # Reset selection when changing the listbox (request parameters will be kept)\n
stool = context.getPortalObject().portal_selections\n stool = context.getPortalObject().portal_selections\n
selection_params = stool.getSelectionParamsFor("Base_viewRelatedObjectList")\n stool.setSelectionFor("Base_viewRelatedObjectList", None)\n
selection_params.pop(\'portal_type\', None)\n return context.Base_viewRelatedObjectList(REQUEST=context.REQUEST)\n
stool.setSelectionParamsFor("Base_viewRelatedObjectList", selection_params)\n
\n
\n
return getattr(context, "Base_viewRelatedObjectList")(REQUEST=context.REQUEST)\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -111,7 +107,6 @@ return getattr(context, "Base_viewRelatedObjectList")(REQUEST=context.REQUEST)\n ...@@ -111,7 +107,6 @@ return getattr(context, "Base_viewRelatedObjectList")(REQUEST=context.REQUEST)\n
<string>Base_updateListboxSelection</string> <string>Base_updateListboxSelection</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>stool</string> <string>stool</string>
<string>selection_params</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
942 943
\ 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