Fix error

This commit is contained in:
dinsmol 2022-01-17 17:53:39 +03:00
parent 68999a4099
commit c72f4831cc

View file

@ -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?