Commit 9370d8d9 authored by Aurel's avatar Aurel

in search dialog, only display fields which are defined searchable in

the listbox


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21768 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9929501b
...@@ -212,7 +212,11 @@ def getSearchDialog(self, REQUEST=None): ...@@ -212,7 +212,11 @@ def getSearchDialog(self, REQUEST=None):
column_list = ListBoxListRenderer( column_list = ListBoxListRenderer(
listbox.widget, listbox, request).getAllColumnList() listbox.widget, listbox, request).getAllColumnList()
search_list = [x[0] for x in ListBoxListRenderer(
listbox.widget, listbox, request).getSearchValueList()]
for column_id, column_title in column_list: for column_id, column_title in column_list:
if column_id in search_list:
# is it a base category ? # is it a base category ?
short_column_id = column_id short_column_id = column_id
# strip the usuale default_ and _title that are on standard fields. # strip the usuale default_ and _title that are on standard fields.
......
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