mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 05:34:46 +02:00
Fix error
This commit is contained in:
parent
68999a4099
commit
c72f4831cc
1 changed files with 2 additions and 1 deletions
|
@ -111,7 +111,8 @@ module Actions
|
||||||
contact.attributes = new_attributes
|
contact.attributes = new_attributes
|
||||||
|
|
||||||
email_changed = contact.will_save_change_to_email?
|
email_changed = contact.will_save_change_to_email?
|
||||||
contact.email_history = contact.email_was
|
old_email = contact.email_was
|
||||||
|
contact.email_history = old_email
|
||||||
updated = contact.save
|
updated = contact.save
|
||||||
|
|
||||||
if updated && email_changed && contact.registrant?
|
if updated && email_changed && contact.registrant?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue