Commit 435d41d8 authored by Yusei Tahara's avatar Yusei Tahara

Non-left join mode runs if preferred predicate category list is a

super set of tested base category list.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36114 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b236ea50
No related merge requests found
...@@ -189,7 +189,9 @@ class DomainTool(BaseTool): ...@@ -189,7 +189,9 @@ class DomainTool(BaseTool):
if tested_base_category_list != []: if tested_base_category_list != []:
preferred_predicate_category_list = portal_preferences.getPreferredPredicateCategoryList() preferred_predicate_category_list = portal_preferences.getPreferredPredicateCategoryList()
if preferred_predicate_category_list and tested_base_category_list is not None: if (preferred_predicate_category_list and
tested_base_category_list is not None and
set(preferred_predicate_category_list).issuperset(set(tested_base_category_list))):
# New behavior is enabled only if preferred predicate category is # New behavior is enabled only if preferred predicate category is
# defined and tested_base_category_list is passed. # defined and tested_base_category_list is passed.
predicate_category_query_list = [] predicate_category_query_list = []
......
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