fix: repeat title value in description of link field.
(cherry picked from commit 5957cbcf0908261339e64bf6536e5c18af511ea1)
This commit is contained in:
parent
369b185c50
commit
8fc518baff
1 changed files with 5 additions and 4 deletions
|
|
@ -245,10 +245,6 @@ def search_widget(
|
|||
def get_std_fields_list(meta, key):
|
||||
# get additional search fields
|
||||
sflist = ["name"]
|
||||
if meta.search_fields:
|
||||
for d in meta.search_fields.split(","):
|
||||
if d.strip() not in sflist:
|
||||
sflist.append(d.strip())
|
||||
|
||||
if meta.title_field and meta.title_field not in sflist:
|
||||
sflist.append(meta.title_field)
|
||||
|
|
@ -256,6 +252,11 @@ def get_std_fields_list(meta, key):
|
|||
if key not in sflist:
|
||||
sflist.append(key)
|
||||
|
||||
if meta.search_fields:
|
||||
for d in meta.search_fields.split(","):
|
||||
if d.strip() not in sflist:
|
||||
sflist.append(d.strip())
|
||||
|
||||
return sflist
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue