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
\n
context.REQUEST.set("proxy_listbox_id", select_dialog )\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
selection_params = stool.getSelectionParamsFor("Base_viewRelatedObjectList")\n
selection_params.pop(\'portal_type\', None)\n
stool.setSelectionParamsFor("Base_viewRelatedObjectList", selection_params)\n
\n
\n
return getattr(context, "Base_viewRelatedObjectList")(REQUEST=context.REQUEST)\n
stool.setSelectionFor("Base_viewRelatedObjectList", None)\n
return context.Base_viewRelatedObjectList(REQUEST=context.REQUEST)\n
</string> </value>
</item>
<item>
......@@ -111,7 +107,6 @@ return getattr(context, "Base_viewRelatedObjectList")(REQUEST=context.REQUEST)\n
<string>Base_updateListboxSelection</string>
<string>_getattr_</string>
<string>stool</string>
<string>selection_params</string>
</tuple>
</value>
</item>
......
942
\ No newline at end of file
943
\ 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