mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Fix domain_contact delete
This commit is contained in:
parent
ddd91d464a
commit
cd97c516f9
1 changed files with 1 additions and 5 deletions
|
@ -54,7 +54,6 @@ class Epp::EppDomain < Domain
|
|||
attach_contacts(self.class.parse_contacts_from_frame(parsed_frame))
|
||||
attach_nameservers(self.class.parse_nameservers_from_frame(parsed_frame))
|
||||
attach_statuses(self.class.parse_statuses_from_frame(parsed_frame))
|
||||
|
||||
errors.empty?
|
||||
end
|
||||
|
||||
|
@ -115,10 +114,7 @@ class Epp::EppDomain < Domain
|
|||
end
|
||||
end
|
||||
|
||||
return unless owner_contact
|
||||
|
||||
attach_contact(DomainContact::TECH, owner_contact) if tech_contacts_count.zero?
|
||||
attach_contact(DomainContact::ADMIN, owner_contact) if admin_contacts_count.zero? && owner_contact.citizen?
|
||||
attach_default_contacts if new_record? && owner_contact
|
||||
end
|
||||
|
||||
def attach_nameservers(ns_list)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue