Commit 71e8e8b8 authored by Nicolas Delaby's avatar Nicolas Delaby

* Do not return all supported column of current catalog, keep only the one used in listbox.

* Detect searchable column from dynamic related key feature of catalog.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42716 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7a0bf002
......@@ -1006,7 +1006,11 @@ class ListBoxRenderer:
if search_columns:
search_column_id_list = [c[0] for c in search_columns]
else:
search_column_id_list = self.getCatalogTool().schema()
search_column_id_list = []
isValidColumn = self.getCatalogTool().getSQLCatalog().isValidColumn
for column_id, column_title in self.getAllColumnList():
if isValidColumn(column_id):
search_column_id_list.append(column_id)
return set(search_column_id_list)
getSearchColumnIdSet = lazyMethod(getSearchColumnIdSet)
......
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