Commit e5ba2d9a authored by Aurel's avatar Aurel

compare objets with their id

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34382 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent de07cd32
No related merge requests found
...@@ -523,7 +523,7 @@ class Subscription(Folder, XMLSyncUtils, File): ...@@ -523,7 +523,7 @@ class Subscription(Folder, XMLSyncUtils, File):
o_id = signature.getObjectId() o_id = signature.getObjectId()
#try with id param too, because gid is not catalogged #try with id param too, because gid is not catalogged
object_list = self.getObjectList(gid=b16decode(gid), id=o_id) object_list = self.getObjectList(gid=b16decode(gid), id=o_id)
if o is not None and o in object_list: if o is not None and o.getId() in [document.getId() for document in object_list]:
return o return o
#LOG('entering in the slow loop of getObjectFromGid !!!',0,'') #LOG('entering in the slow loop of getObjectFromGid !!!',0,'')
object_list = self.getObjectList(gid=b16decode(gid)) object_list = self.getObjectList(gid=b16decode(gid))
......
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