From 83606fb447bfd3fd6828edc60063d15777d89f95 Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Thu, 15 Sep 2005 10:01:26 +0000
Subject: [PATCH] in viewSearchRelatedDocumentDialog get the form from the
 object, not from the selection_tool, so here in tales expression will
 corresponds to the edited object, not the selection tool

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3786 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Form/SelectionTool.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5Form/SelectionTool.py b/product/ERP5Form/SelectionTool.py
index 66bf064450..f3acaf0af6 100755
--- a/product/ERP5Form/SelectionTool.py
+++ b/product/ERP5Form/SelectionTool.py
@@ -929,7 +929,7 @@ class SelectionTool( UniqueObject, SimpleItem ):
           return "Sorrry, Error, the calling object was not catalogued. Do not know how to do ?"
 
       # Find the field which was clicked on
-      form = getattr(self, form_id)
+      form = getattr(o, form_id)
       field = None
       relation_index = 0
 
-- 
2.30.9