Fix REPP log locale issue

This commit is contained in:
Karl Erik Õunapuu 2021-01-22 10:49:21 +02:00
parent f26dd52fb0
commit 1d9850fb98
No known key found for this signature in database
GPG key ID: C9DD647298A34764
4 changed files with 6 additions and 1 deletions

View file

@ -77,6 +77,7 @@ module Epp
def renew def renew
authorize! :renew, @domain authorize! :renew, @domain
@domain.validate_exp_dates(params[:parsed_frame].css('curExpDate').text)
registrar_id = current_user.registrar.id registrar_id = current_user.registrar.id
renew_params = ::Deserializers::Xml::Domain.new(params[:parsed_frame], renew_params = ::Deserializers::Xml::Domain.new(params[:parsed_frame],

View file

@ -13,6 +13,8 @@ module Domains
errors.add(:domain, I18n.t(:active_price_missing_for_operation_with_domain, errors.add(:domain, I18n.t(:active_price_missing_for_operation_with_domain,
domain: domain.name)) domain: domain.name))
domain.add_epp_error(2104, nil, nil, I18n.t(:active_price_missing_for_this_operation))
false false
end end

View file

@ -1,6 +1,6 @@
- content_for :actions do - content_for :actions do
= link_to(t(:back), :back, class: 'btn btn-primary') = link_to(t(:back), :back, class: 'btn btn-primary')
= render 'shared/title', name: t(:repp_log) = render 'shared/title', name: t('.title')
.row .row
.col-md-12 .col-md-12

View file

@ -4,3 +4,5 @@ en:
index: index:
title: REPP log title: REPP log
reset_btn: Reset reset_btn: Reset
show:
title: REPP log