mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 09:21:43 +02:00
New contacts not creating legacy CID prefix
This commit is contained in:
parent
1a28b501aa
commit
3b009dc194
3 changed files with 20 additions and 17 deletions
|
@ -55,11 +55,10 @@ class Epp::Contact < Contact
|
|||
|
||||
# add prefix when needed
|
||||
if custom_code.present?
|
||||
cid, rcode = custom_code.split(':')
|
||||
if "#{cid}:#{rcode}" != registrar.contact_prefix
|
||||
custom_code = "#{registrar.contact_prefix}:#{custom_code}"
|
||||
end
|
||||
custom_code = nil if custom_code == registrar.contact_prefix
|
||||
custom_code.sub!(/^CID:/, '')
|
||||
prefix = custom_code.split(':').first
|
||||
custom_code = "#{registrar.code}:#{custom_code}" if prefix != registrar.code
|
||||
custom_code = nil if custom_code == registrar.code
|
||||
end
|
||||
|
||||
super(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue