Commit 797f7226 authored by Nicolas Dumazet's avatar Nicolas Dumazet

Add aq_base to avoid trying looking up for uid elsewhere and causing errors

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39459 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c8abf8a1
No related merge requests found
......@@ -963,7 +963,7 @@ class ObjectTemplateItem(BaseTemplateItem):
for subdocument in document.objectValues():
recurse(hook, subdocument, my_prefix)
def saveHook(document, prefix):
uid = getattr(document, 'uid', None)
uid = getattr(aq_base(document), 'uid', None)
if uid is None:
return 0
else:
......
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