Commit 7fcf0d19 authored by Romain Courteaud's avatar Romain Courteaud

Fix wrong revision 17666. There shouldn't be acquisition when...

Fix wrong revision 17666. There shouldn't be acquisition when getAcquisitionPortalTypeList returns an empty list.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17688 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c28b2c95
......@@ -971,7 +971,7 @@ class CategoryTool( UniqueObject, Folder, Base ):
acquisition_base_category_list = base_category_value.getAcquisitionBaseCategoryList()
alt_base_category_list = base_category_value.getFallbackBaseCategoryList()
all_acquisition_base_category_list = acquisition_base_category_list + alt_base_category_list
acquisition_pt = base_category_value.getAcquisitionPortalTypeList('python: []')
acquisition_pt = base_category_value.getAcquisitionPortalTypeList(None)
for my_base_category in acquisition_base_category_list:
# We implement here special keywords
if my_base_category == 'parent':
......@@ -984,7 +984,7 @@ class CategoryTool( UniqueObject, Folder, Base ):
#LOG("Parent Object List ",0,str(acquisition_pt))
#my_acquisition_object_path = parent.getPhysicalPath()
#if my_acquisition_object_path in acquired_object_dict:
if acquisition_pt == [] or parent.portal_type in acquisition_pt:
if acquisition_pt is None or parent.portal_type in acquisition_pt:
my_acquisition_object_list = [parent]
else:
my_acquisition_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