From aca78cad0e3bb2f5c4aff96c0d46ba9f31ca4a9f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Thu, 13 Mar 2008 20:33:19 +0000
Subject: [PATCH] In the TALES context for the editable field, 'cell' is
 supposed to be the brain, not the object.

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

diff --git a/product/ERP5Form/ListBox.py b/product/ERP5Form/ListBox.py
index 9b1b5af0c6..73f8c47a7e 100644
--- a/product/ERP5Form/ListBox.py
+++ b/product/ERP5Form/ListBox.py
@@ -2085,7 +2085,7 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine):
           # use the 'cell' value (refer to get_value method in Form.py)
           cell_request = brain.asContext( REQUEST = self.renderer.request
                                         , form    = self.renderer.request.form
-                                        , cell    = self.getObject()
+                                        , cell    = brain
                                         )
           if editable_field.get_value('enabled', REQUEST=cell_request):
             cell_html = editable_field.render( \
-- 
2.30.9