From 55e7072253787a5e8fcc967b603e3910b1337153 Mon Sep 17 00:00:00 2001 From: Yoshinori Okuji <yo@nexedi.com> Date: Tue, 17 Jan 2006 19:17:53 +0000 Subject: [PATCH] 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 --- product/ERP5Form/ListBox.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/product/ERP5Form/ListBox.py b/product/ERP5Form/ListBox.py index f3c3f67fd5..8042b946b7 100755 --- a/product/ERP5Form/ListBox.py +++ b/product/ERP5Form/ListBox.py @@ -716,8 +716,10 @@ class ListBoxWidget(Widget.Widget): if list_method not in (None, ''): # Only update params if list_method is defined # (ie. do not update params in listboxed intended to show a previously defined selection - params['meta_type'] = filtered_meta_types - params['portal_type'] = filtered_portal_types + if filtered_meta_types: + params['meta_type'] = filtered_meta_types + if filtered_portal_types: + params['portal_type'] = filtered_portal_types ############################################################### # -- 2.30.9