From 405ebefd974cc14a75cd91a301c356289c3933c9 Mon Sep 17 00:00:00 2001 From: Yoshinori Okuji <yo@nexedi.com> Date: Fri, 23 Jun 2006 13:29:19 +0000 Subject: [PATCH] If a column is not in stat_columns, the value must be empty. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8160 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 ae1257be0d..e341895b64 100644 --- a/product/ERP5Form/ListBox.py +++ b/product/ERP5Form/ListBox.py @@ -1324,7 +1324,10 @@ class ListBoxRenderer: else: stat_method = None - if stat_method is None: + if stat_method_id is None: + original_value = None + processed_value = u'' + elif stat_method is None: try: original_value = getattr(result[0], alias) processed_value = original_value -- 2.30.9