From 2008c16e1f3701276b5ac12de03360127e996da8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Fri, 17 Nov 2006 15:41:45 +0000
Subject: [PATCH] search input fields must be named from 'sql', not 'alias',
 otherwise we have delivery_start_date instead of delivery.start_date

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

diff --git a/product/ERP5Form/ListBox.py b/product/ERP5Form/ListBox.py
index b2b1ed249c..5bb8ab78dd 100644
--- a/product/ERP5Form/ListBox.py
+++ b/product/ERP5Form/ListBox.py
@@ -1300,7 +1300,7 @@ class ListBoxRenderer:
     for (sql, title), alias in zip(self.getSelectedColumnList(), self.getColumnAliasList()):
       if sql in search_column_id_set:
         # Get the current value and encode it in unicode.
-        param = param_dict.get(alias, u'')
+        param = param_dict.get(alias, param_dict.get(sql, u''))
         if isinstance(param, str):
           param = unicode(param, self.getEncoding())
 
@@ -1310,7 +1310,7 @@ class ListBoxRenderer:
         else:
           search_field = None
 
-        value_list.append((alias, param, search_field))
+        value_list.append((sql, param, search_field))
       else:
         value_list.append((None, None, None))
 
-- 
2.30.9