Commit 50377e0a authored by Yusei Tahara's avatar Yusei Tahara

Base category value must be found from original relative url.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36149 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6c047bea
......@@ -198,7 +198,8 @@ class DomainTool(BaseTool):
predicate_category_table_name_list = []
for relative_url in category_list:
category_value = portal_categories.getCategoryValue(relative_url)
base_category_value = category_value.getBaseCategory()
base_category_id = portal_categories.getBaseCategoryId(relative_url)
base_category_value = portal_categories.getCategoryValue(base_category_id)
if base_category_value.getId() in preferred_predicate_category_list:
table_index = len(predicate_category_query_list)
predicate_category_table_name = 'predicate_category_for_domain_tool_%s' % table_index
......
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