Merge pull request #2271 from internetee/2216-update-fd-notes

Update FD notes when basis of the FD is changed
This commit is contained in:
Timo Võhmar 2022-02-23 17:17:58 +02:00 committed by GitHub
commit c232e8ade6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 139 additions and 143 deletions

View file

@ -112,6 +112,7 @@ module Actions
email_changed = contact.will_save_change_to_email?
old_email = contact.email_was
contact.email_history = old_email
updated = contact.save
if updated && email_changed && contact.registrant?