From 0c348babd7e8910d803d619593b05b44a813bd5b Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Thu, 15 Apr 2004 14:40:17 +0000
Subject: [PATCH] display the value from the object on editable fields instead
 of the value of the requet

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

diff --git a/product/ERP5Form/ListBox.py b/product/ERP5Form/ListBox.py
index 90619c3c51..f0e76241c3 100755
--- a/product/ERP5Form/ListBox.py
+++ b/product/ERP5Form/ListBox.py
@@ -1058,7 +1058,8 @@ onChange="submitAction(this.form,'%s/portal_selections/setReportRoot')">
               else:
                 error_css = ''
                 error_message = ''
-                display_value = REQUEST.get('field_%s' % key, attribute_value)
+                #display_value = REQUEST.get('field_%s' % key, attribute_value)
+                display_value = attribute_value # XXX Make sure this is ok
               cell_body = my_field.render(value = display_value, REQUEST = o, key = key)
                                                             # We use REQUEST which is not so good here
                                                             # This prevents from using standard display process
-- 
2.30.9