Commit bbaed5d8 authored by Sebastien Robin's avatar Sebastien Robin

getAcquiredCategoryList failed with non folder objects


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3660 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fff2c058
......@@ -834,7 +834,7 @@ class CategoryTool( UniqueObject, Folder, Base ):
return result
# First we look at local ids
for object_id in base_category_value.getAcquisitionObjectIdList():
my_acquisition_object = context.get(object_id)
my_acquisition_object = getattr(context,object_id,None)
if my_acquisition_object is not None:
#my_acquisition_object_path = my_acquisition_object.getPhysicalPath()
#if my_acquisition_object_path in acquired_object_dict:
......
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