Browse Source

CLDC-3326: Update question number on irproduct_other to match rent_type (#2330)

pull/2329/head^2
Rachael Booth 9 months ago committed by GitHub
parent
commit
f6dbc0a984
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      app/models/form/lettings/questions/irproduct_other.rb

2
app/models/form/lettings/questions/irproduct_other.rb

@ -8,5 +8,5 @@ class Form::Lettings::Questions::IrproductOther < ::Form::Question
@question_number = QUESTION_NUMBER_FROM_YEAR[form.start_date.year] || QUESTION_NUMBER_FROM_YEAR[QUESTION_NUMBER_FROM_YEAR.keys.max] if form.start_date.present?
end
QUESTION_NUMBER_FROM_YEAR = { 2023 => 6 }.freeze
QUESTION_NUMBER_FROM_YEAR = { 2023 => 6, 2024 => 8 }.freeze
end

Loading…
Cancel
Save