Find person by email during draft submission also if email case doesn't match.
- Legacy-Id: 14723
This commit is contained in:
parent
4c6aa091b1
commit
5573dc00d0
|
@ -412,7 +412,7 @@ def update_replaces_from_submission(request, submission, draft):
|
|||
def get_person_from_name_email(name, email):
|
||||
# try email
|
||||
if email and (email.startswith('unknown-email-') or is_valid_email(email)):
|
||||
persons = Person.objects.filter(email__address=email).distinct()
|
||||
persons = Person.objects.filter(email__address__iexact=email).distinct()
|
||||
if len(persons) == 1:
|
||||
return persons[0]
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue