Commit 7e53c1a1 authored by Yusei Tahara's avatar Yusei Tahara

Fix a bug. Retrieve acquired category values if both acquired and

tested_base_category_list parameters are passed.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35666 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 370ad929
...@@ -176,6 +176,11 @@ class DomainTool(BaseTool): ...@@ -176,6 +176,11 @@ class DomainTool(BaseTool):
category_list = context.getCategoryList() category_list = context.getCategoryList()
else: else:
category_list = [] category_list = []
if acquired:
for tested_base_category in tested_base_category_list:
category_list.extend(
context.getAcquiredCategoryMembershipList(tested_base_category, base=1))
else:
for tested_base_category in tested_base_category_list: for tested_base_category in tested_base_category_list:
category_list.extend( category_list.extend(
context.getCategoryMembershipList(tested_base_category, base=1)) context.getCategoryMembershipList(tested_base_category, base=1))
......
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