Commit d5840b45 authored by Jérome Perrin's avatar Jérome Perrin

do not use _getOb, because some ERP5Documents are not instances of ObjectManager


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8801 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 490015de
......@@ -879,7 +879,9 @@ 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._getOb(object_id, None)
my_acquisition_object = None
if my_acquisition_object in context.objectIds():
my_acquisition_object = getattr(context, object_id)
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