110687814-update_order_change

This commit is contained in:
Stas 2016-03-24 17:31:17 +02:00
parent 21e74dce21
commit 5c2033a8a8

View file

@ -489,13 +489,16 @@ class Epp::Domain < Domain
# at[:statuses] += at_add[:domain_statuses_attributes] # at[:statuses] += at_add[:domain_statuses_attributes]
if erros.empty? && verify
self.upid = current_user.registrar.id if current_user.registrar
self.up_date = Time.zone.now
end
if errors.empty? && verify && if errors.empty? && verify &&
Setting.request_confrimation_on_registrant_change_enabled && Setting.request_confrimation_on_registrant_change_enabled &&
frame.css('registrant').present? && frame.css('registrant').present? &&
frame.css('registrant').attr('verified').to_s.downcase != 'yes' frame.css('registrant').attr('verified').to_s.downcase != 'yes'
registrant_verification_asked!(frame.to_s, current_user.id) registrant_verification_asked!(frame.to_s, current_user.id)
self.upid = current_user.registrar.id if current_user.registrar
self.up_date = Time.zone.now
end end
self.deliver_emails = true # turn on email delivery for epp self.deliver_emails = true # turn on email delivery for epp