Commit 7319c665 authored by Yoshinori Okuji's avatar Yoshinori Okuji

propagate acquisition on acquired_objetc_id


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@811 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 221f6152
......@@ -767,10 +767,15 @@ class CategoryTool( UniqueObject, Folder, Base ):
# First we look at local ids
for object_id in base_category_value.getAcquisitionObjectIdList():
my_acquisition_object = context.get(object_id)
if my_acquisition_object in acquired_object_dict:
continue
acquired_object_dict[my_acquisition_object] = 1
if my_acquisition_object is not None:
if spec is () or my_acquisition_object.portal_type in spec:
new_result = self.getSingleCategoryMembershipList(my_acquisition_object,
base_category, spec=spec, filter=filter, portal_type=portal_type, base=base)
if spec is () or my_acquisition_object.portal_type in base_category_value.getAcquisitionPortalTypeList():
new_result = self.getSingleCategoryAcquiredMembershipList(my_acquisition_object,
base_category, spec=spec, filter=filter, portal_type=portal_type, base=base, acquired_object_dict=acquired_object_dict)
else:
new_result = []
#if base_category_value.acquisition_mask_value:
# # If acquisition masks, then we must return now
# return new_result
......
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