From f3dcc9a93a8a916e5f36b05e1aa6e906daeb24fa Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Mon, 21 Jun 2004 16:33:21 +0000
Subject: [PATCH] import getToolByName was missing

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

diff --git a/product/ERP5Form/MultiRelationField.py b/product/ERP5Form/MultiRelationField.py
index f64e05dd23..3f05c4f4ff 100755
--- a/product/ERP5Form/MultiRelationField.py
+++ b/product/ERP5Form/MultiRelationField.py
@@ -30,6 +30,7 @@ from Products.Formulator import Widget, Validator
 from Products.Formulator.Field import ZMIField
 from Products.Formulator.DummyField import fields
 from Products.ERP5Type.Utils import convertToUpperCase
+from Products.CMFCore.utils import getToolByName
 
 class MultiRelationStringFieldWidget(Widget.LinesTextAreaWidget):
     """
@@ -91,6 +92,7 @@ class MultiRelationStringFieldWidget(Widget.LinesTextAreaWidget):
     def render(self, field, key, value, REQUEST):
         """Render text input field.
         """
+        here = REQUEST['here']
         html_string = Widget.LinesTextAreaWidget.render(self, field, key, value, REQUEST)
         portal_url_string = getToolByName(here, 'portal_url')()
         # We add a button which has a path reference to a base category...
-- 
2.30.9