mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
Bugfixes
This commit is contained in:
parent
b26345dde4
commit
12fd42b6f5
2 changed files with 7 additions and 5 deletions
|
@ -8,7 +8,7 @@ class Domain < ActiveRecord::Base
|
||||||
'2302' => ['Domain name already exists', 'Domain name is reserved or restricted'], # Object exists
|
'2302' => ['Domain name already exists', 'Domain name is reserved or restricted'], # Object exists
|
||||||
'2306' => ['Registrant is missing', 'Admin contact is missing', 'Given and current expire dates do not match'], # Parameter policy error
|
'2306' => ['Registrant is missing', 'Admin contact is missing', 'Given and current expire dates do not match'], # Parameter policy error
|
||||||
'2004' => ['Nameservers count must be between 1-13', 'Period must add up to 1, 2 or 3 years'], # Parameter value range error
|
'2004' => ['Nameservers count must be between 1-13', 'Period must add up to 1, 2 or 3 years'], # Parameter value range error
|
||||||
'2303' => ['Contact was not found'] # Object does not exist
|
'2303' => ['Registrant not found', 'Contact was not found'] # Object does not exist
|
||||||
}
|
}
|
||||||
|
|
||||||
EPP_ATTR_MAP = {
|
EPP_ATTR_MAP = {
|
||||||
|
@ -82,12 +82,14 @@ class Domain < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if owner_contact
|
||||||
attach_contact(Contact::CONTACT_TYPE_TECH, owner_contact) if tech_contacts.empty?
|
attach_contact(Contact::CONTACT_TYPE_TECH, owner_contact) if tech_contacts.empty?
|
||||||
|
|
||||||
if owner_contact.citizen?
|
if owner_contact.citizen?
|
||||||
attach_contact(Contact::CONTACT_TYPE_ADMIN, owner_contact) if admin_contacts.empty?
|
attach_contact(Contact::CONTACT_TYPE_ADMIN, owner_contact) if admin_contacts.empty?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def attach_contact(type, contact)
|
def attach_contact(type, contact)
|
||||||
tech_contacts << contact if type.to_sym == :tech
|
tech_contacts << contact if type.to_sym == :tech
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
class AddressColumnRename < ActiveRecord::Migration
|
class AddressColumnRename < ActiveRecord::Migration
|
||||||
def change
|
def change
|
||||||
rename_column :addresses, :address, :street, :limit => 11
|
rename_column :addresses, :address, :street
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue