From 1d9850fb98d685e392fda0266db4ba7a49342699 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Erik=20=C3=95unapuu?= Date: Fri, 22 Jan 2021 10:49:21 +0200 Subject: [PATCH] Fix REPP log locale issue --- app/controllers/epp/domains_controller.rb | 1 + app/interactions/domains/check_balance/single_domain.rb | 2 ++ app/views/admin/repp_logs/show.haml | 2 +- config/locales/admin/repp_logs.en.yml | 2 ++ 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/controllers/epp/domains_controller.rb b/app/controllers/epp/domains_controller.rb index b8fafb8a7..546cc131b 100644 --- a/app/controllers/epp/domains_controller.rb +++ b/app/controllers/epp/domains_controller.rb @@ -77,6 +77,7 @@ module Epp def renew authorize! :renew, @domain + @domain.validate_exp_dates(params[:parsed_frame].css('curExpDate').text) registrar_id = current_user.registrar.id renew_params = ::Deserializers::Xml::Domain.new(params[:parsed_frame], diff --git a/app/interactions/domains/check_balance/single_domain.rb b/app/interactions/domains/check_balance/single_domain.rb index 166edc4e3..365b69d6c 100644 --- a/app/interactions/domains/check_balance/single_domain.rb +++ b/app/interactions/domains/check_balance/single_domain.rb @@ -13,6 +13,8 @@ module Domains errors.add(:domain, I18n.t(:active_price_missing_for_operation_with_domain, domain: domain.name)) + + domain.add_epp_error(2104, nil, nil, I18n.t(:active_price_missing_for_this_operation)) false end diff --git a/app/views/admin/repp_logs/show.haml b/app/views/admin/repp_logs/show.haml index bbaae977f..9bb9ea52e 100644 --- a/app/views/admin/repp_logs/show.haml +++ b/app/views/admin/repp_logs/show.haml @@ -1,6 +1,6 @@ - content_for :actions do = link_to(t(:back), :back, class: 'btn btn-primary') -= render 'shared/title', name: t(:repp_log) += render 'shared/title', name: t('.title') .row .col-md-12 diff --git a/config/locales/admin/repp_logs.en.yml b/config/locales/admin/repp_logs.en.yml index 559ae234a..2436f849a 100644 --- a/config/locales/admin/repp_logs.en.yml +++ b/config/locales/admin/repp_logs.en.yml @@ -4,3 +4,5 @@ en: index: title: REPP log reset_btn: Reset + show: + title: REPP log