diff --git a/product/ERP5Form/ListBox.py b/product/ERP5Form/ListBox.py index b2b1ed249c843af7353b77c95cd3ce37b09a724b..5bb8ab78dd6419c3f4d0b763fa2cb2ceb05a2e5a 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))