Added assignment of email origin in another place.

- Legacy-Id: 15175
This commit is contained in:
Henrik Levkowetz 2018-05-26 08:36:50 +00:00
parent f6537fda59
commit 2fd1f81749

View file

@ -251,6 +251,8 @@ def profile(request):
email.primary = email.address == primary_email
if email.primary and not email.active:
email.active = True
if not email.origin:
email.origin = person.user.username
email.save()
# Make sure the alias table contains any new and/or old names.