mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
Added missing CID for custom code
This commit is contained in:
parent
6bded6bc80
commit
60d564d098
4 changed files with 29 additions and 20 deletions
|
@ -55,10 +55,11 @@ class Epp::Contact < Contact
|
|||
|
||||
# add prefix when needed
|
||||
if custom_code.present?
|
||||
prefix, custom = custom_code.split(':')
|
||||
if prefix != registrar.code && custom != registrar.code
|
||||
custom_code = "#{registrar.code}:#{custom_code}"
|
||||
cid, rcode, custom = 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
|
||||
end
|
||||
|
||||
super(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue