Story: #104525314 - fix: do not ask registrant verification when there were errors and nothing is done

This commit is contained in:
Matt Farnsworth 2015-10-29 13:09:20 +02:00
parent 339885cd3d
commit 3a16b9eada

View file

@ -460,7 +460,7 @@ class Epp::Domain < Domain
# at[:statuses] += at_add[:domain_statuses_attributes] # at[:statuses] += at_add[:domain_statuses_attributes]
if 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'