From 95b7c0ddc1686bf2f841540b0b4d7de1f5d0c5ec Mon Sep 17 00:00:00 2001
From: Kevin Deldycke <kevin@nexedi.com>
Date: Tue, 25 Jul 2006 19:45:07 +0000
Subject: [PATCH] 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
---
 product/ERP5Form/Report.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5Form/Report.py b/product/ERP5Form/Report.py
index 73da9024c3..bf04e96b95 100644
--- a/product/ERP5Form/Report.py
+++ b/product/ERP5Form/Report.py
@@ -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):
-- 
2.30.9