Merge branch '110412166-registrant_change' into staging

This commit is contained in:
Stas 2016-02-12 14:09:12 +02:00
commit aa0a25a609
2 changed files with 11 additions and 1 deletions

View file

@ -489,6 +489,15 @@ class Epp::Domain < Domain
# at[:statuses] += at_add[:domain_statuses_attributes]
if registrant_id && registrant.code == frame.css('registrant')
throw :epp_error, {
code: '2305',
msg: I18n.t(:contact_already_associated_with_the_domain)
}
end
if errors.empty? && verify &&
Setting.request_confrimation_on_registrant_change_enabled &&
frame.css('registrant').present? &&

View file

@ -935,4 +935,5 @@ en:
add_reserved_domain: 'Add domain to reserved list'
add_blocked_domain: 'Add domain to blocked list'
edit_pw: 'Edit Pw'
optional: 'Optional'
optional: 'Optional'
contact_already_associated_with_the_domain: 'Object association prohibits operation, contact already associated with the domain'