Commit 4ca38f96 authored by Rafael Monnerat's avatar Rafael Monnerat

Fixed an inconsistency when use parent, this fix simplify a litle bit the configuration at field.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16912 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8a5835cb
......@@ -1352,6 +1352,12 @@ class BasicStructure:
category_obj = domain_obj.getMembershipCriterionCategory()
for bc in domain_obj.getMembershipCriterionBaseCategoryList():
if (category_obj is not None) and (bc is not None):
if bc == 'parent':
new_object_list.extend([ s_obj for s_obj in build_object_list \
if s_obj.getParentRelativeUrl() == category_obj])
sec_new_object_list.extend([ s_obj for s_obj in build_sec_layer_object_list \
if s_obj.getParentRelativeUrl() == category_obj])
else:
new_object_list.extend([ s_obj for s_obj in build_object_list \
if s_obj._getDefaultAcquiredCategoryMembership(bc) == category_obj])
sec_new_object_list.extend([ s_obj for s_obj in build_sec_layer_object_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