From 776b81e18de0fbe363874661bdc58712ec71c799 Mon Sep 17 00:00:00 2001
From: Romain Courteaud <romain@nexedi.com>
Date: Mon, 31 May 2010 08:33:25 +0000
Subject: [PATCH] Do not expect to find the template field in the first field
 library of the skin selection.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35769 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Form/ProxyField.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/product/ERP5Form/ProxyField.py b/product/ERP5Form/ProxyField.py
index 778aab5603..e4c113f039 100644
--- a/product/ERP5Form/ProxyField.py
+++ b/product/ERP5Form/ProxyField.py
@@ -574,10 +574,7 @@ class ProxyField(ZMIField):
     """
     proxy_field = self.getTemplateField()
     if proxy_field:
-      url='/'.join((self.absolute_url(),
-                    self.get_value('form_id'),
-                    self.get_value('field_id'),
-                    'manage_main'))
+      url = "%s/manage_main" % proxy_field.absolute_url() 
       REQUEST.RESPONSE.redirect(url)
     else:
       # FIXME: should show some error message 
-- 
2.30.9