Make email search case-insensitive #38844
This commit is contained in:
parent
a2c009754f
commit
58222fc4e9
|
@ -46,7 +46,7 @@ class LDAPEmailsSearch(BaseSearch):
|
||||||
found = False
|
found = False
|
||||||
|
|
||||||
for term in vocabulary:
|
for term in vocabulary:
|
||||||
if search_term in term.token:
|
if search_term.lower() in term.token.lower():
|
||||||
found = True
|
found = True
|
||||||
yield {
|
yield {
|
||||||
"text": term.value,
|
"text": term.value,
|
||||||
|
|
Reference in New Issue