Commit 95b7c0dd authored by Kevin Deldycke's avatar Kevin Deldycke

Return the object in the right context (JPS)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8786 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9387a418
......@@ -245,7 +245,7 @@ class ReportSection:
security.declarePublic('getObject')
def getObject(self, context):
return context.restrictedTraverse(self.path)
return context.getPortalObject().restrictedTraverse(self.path)
security.declarePublic('getFormId')
def getFormId(self):
......
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