diff --git a/product/ERP5Catalog/CatalogTool.py b/product/ERP5Catalog/CatalogTool.py index 873cec696acbf8c507ab2679359d4bbcb354a000..044fb26de4d6d7b38209dc29da58f9472464f2ba 100644 --- a/product/ERP5Catalog/CatalogTool.py +++ b/product/ERP5Catalog/CatalogTool.py @@ -596,10 +596,7 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject): if security_uid_list: query = ComplexQuery(Query(security_uid=security_uid_list, operator='IN'), query, operator='OR') - elif security_uid_list: - # If security_uid_list is empty, adding it to criterions will only - # result in "false or [...]", so avoid useless overhead by not - # adding it at all. + else: query = Query(security_uid=security_uid_list, operator='IN') if local_role_column_dict: