From e12846cac497dee87a9ebf60dc07d41b5bf28033 Mon Sep 17 00:00:00 2001 From: Alexandre Boeglin <alex@nexedi.com> Date: Sat, 22 Jan 2005 11:14:30 +0000 Subject: [PATCH] generate_field_key() was called on the wrong object. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2268 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Form/ListBox.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/product/ERP5Form/ListBox.py b/product/ERP5Form/ListBox.py index 734d3132da..0813c944a2 100755 --- a/product/ERP5Form/ListBox.py +++ b/product/ERP5Form/ListBox.py @@ -1516,7 +1516,10 @@ onChange="submitAction(this.form,'%s/portal_selections/setReportRoot')"> # Add item to list_result_item for list render format if render_format == 'list': - current_listboxline.addColumn(property_id , my_field._get_default(self.generate_field_key(), attribute_original_value, o)) + column_value = my_field._get_default(my_field.generate_field_key(), attribute_original_value, o) + if type(column_value) is type(''): + column_value = unicode(column_value, 'utf-8') + current_listboxline.addColumn(property_id , column_value) else: # Check if url_columns defines a method to retrieve the URL. -- 2.30.9