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

as the listbox will change, remove portal_type from the selection, because...

as the listbox will change, remove portal_type from the selection, because portal_type from selection have priority over portal_type from the listbox

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23089 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 625fed8b
......@@ -72,7 +72,14 @@ if Base_updateListboxSelection is not None:\n
\n
context.REQUEST.set("proxy_listbox_id", select_dialog )\n
\n
return getattr(context,"Base_viewRelatedObjectList")(REQUEST=context.REQUEST)\n
# Remove portal_type from selection params when changing the listbox\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
</string> </value>
</item>
<item>
......@@ -127,6 +134,8 @@ return getattr(context,"Base_viewRelatedObjectList")(REQUEST=context.REQUEST)\n
<string>None</string>
<string>Base_updateListboxSelection</string>
<string>_getattr_</string>
<string>stool</string>
<string>selection_params</string>
</tuple>
</value>
</item>
......
583
\ No newline at end of file
584
\ 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