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,9 +176,14 @@ class DomainTool(BaseTool):
category_list = context.getCategoryList()
else:
category_list = []
for tested_base_category in tested_base_category_list:
category_list.extend(
context.getCategoryMembershipList(tested_base_category, base=1))
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:
category_list.extend(
context.getCategoryMembershipList(tested_base_category, base=1))
if tested_base_category_list != []:
if len(category_list)==0:
......
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