Make email search case-insensitive #38844

This commit is contained in:
Nicolas Demonte 2020-01-29 11:59:31 +01:00
parent a2c009754f
commit 58222fc4e9
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ class LDAPEmailsSearch(BaseSearch):
found = False
for term in vocabulary:
if search_term in term.token:
if search_term.lower() in term.token.lower():
found = True
yield {
"text": term.value,