mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 02:39:37 +02:00
111864739-catcher_for_all_domain_methods
This commit is contained in:
parent
2430bfebf2
commit
7f9e1e0c9c
1 changed files with 12 additions and 5 deletions
|
@ -194,7 +194,10 @@ class Epp::Domain < Domain
|
|||
end
|
||||
|
||||
at[:dnskeys_attributes] = dnskeys_attrs(dnskey_frame, action)
|
||||
at[:legal_documents_attributes] = legal_document_from(frame)
|
||||
|
||||
doc = legal_document_from(frame)
|
||||
self.legal_document_id = doc.id if doc.id
|
||||
at[:legal_documents_attributes] = doc
|
||||
at
|
||||
end
|
||||
# rubocop: enable Metrics/PerceivedComplexity
|
||||
|
@ -476,7 +479,7 @@ class Epp::Domain < Domain
|
|||
|
||||
if doc = attach_legal_document(Epp::Domain.parse_legal_document_from_frame(frame))
|
||||
frame.css("legalDocument").first.content = doc.path if doc && doc.persisted?
|
||||
self.legal_document_id = doc.id
|
||||
self.legal_document_id = doc.id if doc.id
|
||||
end
|
||||
|
||||
at_add = attrs_from(frame.css('add'), current_user, 'add')
|
||||
|
@ -546,6 +549,7 @@ class Epp::Domain < Domain
|
|||
|
||||
if doc = attach_legal_document(Epp::Domain.parse_legal_document_from_frame(frame))
|
||||
frame.css("legalDocument").first.content = doc.path if doc && doc.persisted?
|
||||
self.legal_document_id = doc.id if doc.id
|
||||
end
|
||||
|
||||
if Setting.request_confirmation_on_domain_deletion_enabled &&
|
||||
|
@ -698,7 +702,8 @@ class Epp::Domain < Domain
|
|||
self.registrar = current_user.registrar
|
||||
end
|
||||
|
||||
attach_legal_document(self.class.parse_legal_document_from_frame(frame))
|
||||
doc = attach_legal_document(self.class.parse_legal_document_from_frame(frame))
|
||||
self.legal_document_id = doc.id if doc.id
|
||||
save!(validate: false)
|
||||
|
||||
return dt
|
||||
|
@ -726,7 +731,8 @@ class Epp::Domain < Domain
|
|||
generate_auth_info
|
||||
self.registrar = pt.transfer_to
|
||||
|
||||
attach_legal_document(self.class.parse_legal_document_from_frame(frame))
|
||||
doc = attach_legal_document(self.class.parse_legal_document_from_frame(frame))
|
||||
self.legal_document_id = doc.id if doc.id
|
||||
save!(validate: false)
|
||||
end
|
||||
|
||||
|
@ -747,7 +753,8 @@ class Epp::Domain < Domain
|
|||
status: DomainTransfer::CLIENT_REJECTED
|
||||
)
|
||||
|
||||
attach_legal_document(self.class.parse_legal_document_from_frame(frame))
|
||||
doc = attach_legal_document(self.class.parse_legal_document_from_frame(frame))
|
||||
self.legal_document_id = doc.id if doc.id
|
||||
save!(validate: false)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue