mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
All system now supports legacy CID format
This commit is contained in:
parent
1f504e08ea
commit
928ce24132
9 changed files with 137 additions and 56 deletions
|
@ -84,7 +84,7 @@ class Epp::Domain < Domain
|
|||
|
||||
code = frame.css('registrant').first.try(:text)
|
||||
if code.present?
|
||||
oc = Contact.find_by(code: code).try(:id)
|
||||
oc = Epp::Contact.find_by_epp_code(code).try(:id)
|
||||
|
||||
if oc
|
||||
at[:registrant_id] = oc
|
||||
|
@ -206,7 +206,7 @@ class Epp::Domain < Domain
|
|||
frame.css('contact').each do |x|
|
||||
next if x['type'] != type
|
||||
|
||||
c = Contact.find_by(code: x.text)
|
||||
c = Epp::Contact.find_by_epp_code(x.text)
|
||||
unless c
|
||||
add_epp_error('2303', 'contact', x.text, [:domain_contacts, :not_found])
|
||||
next
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue