Commit d7aa0ece authored by Rafael Monnerat's avatar Rafael Monnerat

Added Support to aquisition when is check for the right Domain.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15177 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent aaaaed33
...@@ -1312,12 +1312,13 @@ class BasicStructure: ...@@ -1312,12 +1312,13 @@ class BasicStructure:
new_object_list = [] new_object_list = []
if domain_obj.getPortalType() == 'Domain': if domain_obj.getPortalType() == 'Domain':
category_obj = domain_obj.getMembershipCriterionCategory() category_obj = domain_obj.getMembershipCriterionCategory()
membership_base_category = domain_obj.getMembershipCriterionBaseCategory() base_category_list = domain_obj.getMembershipCriterionBaseCategoryList()
if (category_obj is not None) and (membership_base_category is not None): for bc in base_category_list:
category_value = (membership_base_category + '/' + category_obj.getRelativeUrl()) if (category_obj is not None) and (bc is not None):
for selected_object in object_list: category_value = category_obj.getRelativeUrl()
if category_value in selected_object.getCategoriesList(): for s_obj in object_list:
new_object_list.append(selected_object) if s_obj._getDefaultAcquiredCategoryMembership(bc) == category_value:
new_object_list.append(s_obj)
object_list = new_object_list object_list = new_object_list
if exception_uid_list not in ([],None) : if exception_uid_list not in ([],None) :
......
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