From 3905175986651fb2203783ead7d1398c52713e16 Mon Sep 17 00:00:00 2001
From: Romain Courteaud <romain@nexedi.com>
Date: Wed, 17 May 2006 16:36:51 +0000
Subject: [PATCH] Remove hardcoded name.

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

diff --git a/product/ERP5Form/SelectionTool.py b/product/ERP5Form/SelectionTool.py
index 54def3b469..d76619e396 100644
--- a/product/ERP5Form/SelectionTool.py
+++ b/product/ERP5Form/SelectionTool.py
@@ -1062,7 +1062,8 @@ class SelectionTool( UniqueObject, SimpleItem ):
          # Empty the selection (uid)
         REQUEST.form = kw # New request form
         # Define new HTTP_REFERER
-        REQUEST.HTTP_REFERER = '%s/Base_viewRelatedObjectList' % o.absolute_url()
+        REQUEST.HTTP_REFERER = '%s/%s' % (o.absolute_url(),
+                                          redirect_form_id)
         # Return the search dialog
         return getattr(o, redirect_form_id)(REQUEST=REQUEST)
 
-- 
2.30.9