From 578dea7828e4e482d8ba286db5624f7329feb340 Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Thu, 9 Mar 2023 17:27:19 +0000 Subject: [PATCH] feat: skip fixed term tenancy length question when tenancy is other --- app/models/form/lettings/pages/tenancy_length.rb | 2 +- config/forms/2022_2023.json | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/app/models/form/lettings/pages/tenancy_length.rb b/app/models/form/lettings/pages/tenancy_length.rb index 943ea2bc9..bf898a300 100644 --- a/app/models/form/lettings/pages/tenancy_length.rb +++ b/app/models/form/lettings/pages/tenancy_length.rb @@ -2,7 +2,7 @@ class Form::Lettings::Pages::TenancyLength < ::Form::Page def initialize(id, hsh, subsection) super @id = "tenancy_length" - @depends_on = [{ "tenancy" => 4 }, { "tenancy" => 6 }, { "tenancy" => 3 }] + @depends_on = [{ "tenancy" => 4 }, { "tenancy" => 6 }] end def questions diff --git a/config/forms/2022_2023.json b/config/forms/2022_2023.json index e0ef19198..eeed6c3c7 100644 --- a/config/forms/2022_2023.json +++ b/config/forms/2022_2023.json @@ -1110,9 +1110,6 @@ }, { "tenancy": 6 - }, - { - "tenancy": 3 } ] },