Commit 55e70722 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Set meta_type and portal_type only if filtered_meta_types and...

Set meta_type and portal_type only if filtered_meta_types and filtered_portal_types are not None or empty, respectively.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5148 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6d4409a8
...@@ -716,8 +716,10 @@ class ListBoxWidget(Widget.Widget): ...@@ -716,8 +716,10 @@ class ListBoxWidget(Widget.Widget):
if list_method not in (None, ''): if list_method not in (None, ''):
# Only update params if list_method is defined # Only update params if list_method is defined
# (ie. do not update params in listboxed intended to show a previously defined selection # (ie. do not update params in listboxed intended to show a previously defined selection
params['meta_type'] = filtered_meta_types if filtered_meta_types:
params['portal_type'] = filtered_portal_types params['meta_type'] = filtered_meta_types
if filtered_portal_types:
params['portal_type'] = filtered_portal_types
############################################################### ###############################################################
# #
......
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