diff --git a/app/controllers/concerns/epp/common.rb b/app/controllers/concerns/epp/common.rb index e67f48130..d43b82190 100644 --- a/app/controllers/concerns/epp/common.rb +++ b/app/controllers/concerns/epp/common.rb @@ -48,9 +48,9 @@ module Epp::Common end # for debugging - @errors << { - code: '1', - msg: 'handle_errors was executed when there were actually no errors' + @errors << { + code: '1', + msg: 'handle_errors was executed when there were actually no errors' } if @errors.blank? @errors.uniq! @@ -65,9 +65,9 @@ module Epp::Common def xml_attrs_present?(ph, attributes) attributes.each do |x| - epp_errors << { + epp_errors << { code: '2003', - msg: I18n.t('errors.messages.required_parameter_missing', key: x.last) + msg: I18n.t('errors.messages.required_parameter_missing', key: x.last) } unless has_attribute(ph, x) end epp_errors.empty? @@ -77,7 +77,7 @@ module Epp::Common [array_ph].flatten.each do |ph| attributes.each do |x| next if has_attribute(ph, x) - epp_errors << { + epp_errors << { code: '2003', msg: I18n.t('errors.messages.required_parameter_missing', key: x.last) } diff --git a/db/seeds.rb b/db/seeds.rb index c515fd710..c180727ea 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -74,7 +74,13 @@ s_1.value = 1 s_2 = Setting.where(code: 'ns_max_count').first_or_create s_2.value = 13 -sg.settings = [s_1, s_2] +s_3 = Setting.where(code: 'dnskeys_min_count').first_or_create +s_3.value = 0 + +s_4 = Setting.where(code: 'dnskeys_max_count').first_or_create +s_4.value = 9 + +sg.settings = [s_1, s_2, s_3, s_4] sg.save sg = SettingGroup.where(code: 'domain_general').first_or_create @@ -84,4 +90,3 @@ s_1.value = 0 sg.settings = [s_1] sg.save -