From cd14c6a24f338faea6067c77004072e522eb0a21 Mon Sep 17 00:00:00 2001 From: SamSeed-Softwire <63662292+SamSeed-Softwire@users.noreply.github.com> Date: Tue, 14 Mar 2023 13:57:47 +0000 Subject: [PATCH] fix: get real validation messages for rent range validations (#1413) --- app/models/form/lettings/pages/max_rent_value_check.rb | 4 ++-- app/models/form/lettings/pages/min_rent_value_check.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/models/form/lettings/pages/max_rent_value_check.rb b/app/models/form/lettings/pages/max_rent_value_check.rb index 88d0561bf..59b2d14fe 100644 --- a/app/models/form/lettings/pages/max_rent_value_check.rb +++ b/app/models/form/lettings/pages/max_rent_value_check.rb @@ -4,11 +4,11 @@ class Form::Lettings::Pages::MaxRentValueCheck < ::Form::Page @id = "max_rent_value_check" @depends_on = [{ "rent_in_soft_max_range?" => true }] @title_text = { - "translation" => "soft_validations.rent.max.title_text", + "translation" => "soft_validations.rent.outside_range_title", "arguments" => [{ "key" => "brent", "label" => true, "i18n_template" => "brent" }], } @informative_text = { - "translation" => "soft_validations.rent.max.hint_text", + "translation" => "soft_validations.rent.max_hint_text", "arguments" => [ { "key" => "soft_max_for_period", diff --git a/app/models/form/lettings/pages/min_rent_value_check.rb b/app/models/form/lettings/pages/min_rent_value_check.rb index 3bcb95789..ed5ede781 100644 --- a/app/models/form/lettings/pages/min_rent_value_check.rb +++ b/app/models/form/lettings/pages/min_rent_value_check.rb @@ -4,11 +4,11 @@ class Form::Lettings::Pages::MinRentValueCheck < ::Form::Page @id = "min_rent_value_check" @depends_on = [{ "rent_in_soft_min_range?" => true }] @title_text = { - "translation" => "soft_validations.rent.min.title_text", + "translation" => "soft_validations.rent.outside_range_title", "arguments" => [{ "key" => "brent", "label" => true, "i18n_template" => "brent" }], } @informative_text = { - "translation" => "soft_validations.rent.min.hint_text", + "translation" => "soft_validations.rent.min_hint_text", "arguments" => [ { "key" => "soft_min_for_period",