Commit ed50054d authored by Yoshinori Okuji's avatar Yoshinori Okuji

If an object does not have getBaseCategoryId, simply ignore it.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@193 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3726bcc6
......@@ -190,6 +190,8 @@ class Renderer(Filter):
else:
# If the base category of this category does not match the guessed base category,
# merely ignore this category.
if not hasattr('getBaseCategoryId'):
continue
if value.getBaseCategoryId() != guessed_base_category:
continue
else:
......
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