From 8f877973077e22af30171e2a1e0982963bc8b045 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Wed, 10 Dec 2014 17:52:37 +0900 Subject: [PATCH] Listbox: do not get stat values on brains by index when we can simply get them by key (ie. column name) --- 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 81059ef823..3e0b016e3f 100644 --- a/product/ERP5Form/ListBox.py +++ b/product/ERP5Form/ListBox.py @@ -1836,7 +1836,7 @@ class ListBoxRenderer: stat_result = {} for index, (k, v) in enumerate(self.getSelectedColumnList()): try: - stat_result[k] = str(stat_brain[0][index + 1]) + stat_result[k] = stat_brain[0][k] except IndexError: stat_result[k] = '' -- 2.30.9