mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 19:20:37 +02:00
Story #109367018 - send mail about with old registrant name when pending update
This commit is contained in:
parent
3a408277da
commit
8944ec5bf0
1 changed files with 2 additions and 3 deletions
|
@ -438,7 +438,6 @@ class Domain < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def pending_update!
|
def pending_update!
|
||||||
old_registrant_id = registrant_id
|
|
||||||
return true if pending_update?
|
return true if pending_update?
|
||||||
self.epp_pending_update = true # for epp
|
self.epp_pending_update = true # for epp
|
||||||
|
|
||||||
|
@ -450,8 +449,8 @@ class Domain < ActiveRecord::Base
|
||||||
new_registrant_email = registrant.email
|
new_registrant_email = registrant.email
|
||||||
new_registrant_name = registrant.name
|
new_registrant_name = registrant.name
|
||||||
|
|
||||||
DomainMailer.pending_update_request_for_old_registrant(id, old_registrant_id, deliver_emails).deliver
|
DomainMailer.pending_update_request_for_old_registrant(id, registrant_id_was, deliver_emails).deliver
|
||||||
DomainMailer.pending_update_notification_for_new_registrant(id, old_registrant_id, deliver_emails).deliver
|
DomainMailer.pending_update_notification_for_new_registrant(id, registrant_id_was, deliver_emails).deliver
|
||||||
|
|
||||||
reload # revert back to original
|
reload # revert back to original
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue