fix(search): add Autocomplete field type to search filters
This commit is contained in:
parent
ffe362316d
commit
356bcbfe7b
2 changed files with 4 additions and 1 deletions
|
|
@ -156,6 +156,7 @@ def search_widget(
|
|||
# build from doctype
|
||||
if txt:
|
||||
field_types = {
|
||||
"Autocomplete",
|
||||
"Data",
|
||||
"Text",
|
||||
"Small Text",
|
||||
|
|
|
|||
|
|
@ -173,7 +173,9 @@ def get_list(
|
|||
or_filters.extend(
|
||||
[doctype, f, "like", "%" + txt + "%"]
|
||||
for f in meta.get_search_fields()
|
||||
if f == "name" or meta.get_field(f).fieldtype in ("Data", "Text", "Small Text", "Text Editor")
|
||||
if f == "name"
|
||||
or meta.get_field(f).fieldtype
|
||||
in ("Autocomplete", "Data", "Text", "Small Text", "Text Editor")
|
||||
)
|
||||
else:
|
||||
if isinstance(filters, dict):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue