mirror of
https://github.com/internetee/registry.git
synced 2025-05-20 19:29:39 +02:00
Strory#118822101 - update how schema is generated
This commit is contained in:
parent
f733180f7f
commit
bfc47fa21e
2 changed files with 3 additions and 3 deletions
|
@ -160,7 +160,7 @@ class Epp::Domain < Domain
|
||||||
code = registrant_frame.try(:text)
|
code = registrant_frame.try(:text)
|
||||||
if code.present?
|
if code.present?
|
||||||
if action == 'chg' && registrant_change_prohibited?
|
if action == 'chg' && registrant_change_prohibited?
|
||||||
add_epp_error('2304', nil, DomainStatus::SERVER_REGISTRANT_CHANGE_PROHIBITED, I18n.t(:object_status_prohibits_operation))
|
add_epp_error('2304', "status", DomainStatus::SERVER_REGISTRANT_CHANGE_PROHIBITED, I18n.t(:object_status_prohibits_operation))
|
||||||
end
|
end
|
||||||
regt = Registrant.find_by(code: code)
|
regt = Registrant.find_by(code: code)
|
||||||
if regt
|
if regt
|
||||||
|
|
|
@ -7,10 +7,10 @@ xml.epp_head do
|
||||||
xml.value('xmlns:obj' => 'urn:ietf:params:xml:ns:obj') do
|
xml.value('xmlns:obj' => 'urn:ietf:params:xml:ns:obj') do
|
||||||
if (val = x[:value][:val]).respond_to?(:each)
|
if (val = x[:value][:val]).respond_to?(:each)
|
||||||
val.each do |el|
|
val.each do |el|
|
||||||
xml.tag!("obj:#{x[:value][:obj]}", el)
|
xml.tag!("#{controller.controller_name}:#{x[:value][:obj]}", el)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
xml.tag!("obj:#{x[:value][:obj]}", val)
|
xml.tag!("#{controller.controller_name}:#{x[:value][:obj]}", val)
|
||||||
end
|
end
|
||||||
end if x[:value]
|
end if x[:value]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue