Browse Source

Add back missing logic to determine question number

pull/2961/head
Manny Dinssa 2 months ago
parent
commit
4f393d913c
  1. 2
      app/models/form/sales/questions/living_before_purchase_years.rb

2
app/models/form/sales/questions/living_before_purchase_years.rb

@ -9,7 +9,7 @@ class Form::Sales::Questions::LivingBeforePurchaseYears < ::Form::Question
@step = 1 @step = 1
@width = 5 @width = 5
@ownershipsch = ownershipsch @ownershipsch = ownershipsch
@question_number = question_number @question_number = QUESTION_NUMBER_FROM_YEAR_AND_OWNERSHIP.fetch(form.start_date.year, QUESTION_NUMBER_FROM_YEAR_AND_OWNERSHIP.max_by { |k, _v| k }.last)[ownershipsch]
end end
def suffix_label(log) def suffix_label(log)

Loading…
Cancel
Save