Commit 2008c16e authored by Jérome Perrin's avatar Jérome Perrin

search input fields must be named from 'sql', not 'alias', otherwise we have...

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
parent 306565a6
...@@ -1300,7 +1300,7 @@ class ListBoxRenderer: ...@@ -1300,7 +1300,7 @@ class ListBoxRenderer:
for (sql, title), alias in zip(self.getSelectedColumnList(), self.getColumnAliasList()): for (sql, title), alias in zip(self.getSelectedColumnList(), self.getColumnAliasList()):
if sql in search_column_id_set: if sql in search_column_id_set:
# Get the current value and encode it in unicode. # 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): if isinstance(param, str):
param = unicode(param, self.getEncoding()) param = unicode(param, self.getEncoding())
...@@ -1310,7 +1310,7 @@ class ListBoxRenderer: ...@@ -1310,7 +1310,7 @@ class ListBoxRenderer:
else: else:
search_field = None search_field = None
value_list.append((alias, param, search_field)) value_list.append((sql, param, search_field))
else: else:
value_list.append((None, None, None)) value_list.append((None, None, None))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment