Skip to content

Commit

Permalink
Merge pull request #3039 from bitzesty/fix-matrix-question-values-pro…
Browse files Browse the repository at this point in the history
…duction

Reset `required_rows` array before each assignment [PRODUCTION]
  • Loading branch information
Lubosky authored Aug 15, 2024
2 parents 10011ac + 9aa936c commit 28da16f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions forms/qae_form_builder/matrix_question.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ def required?
errors = super

if delegate_obj.required_row_parent
delegate_obj.required_rows = []

step.form[delegate_obj.required_row_parent].input_value&.each { |a| delegate_obj.required_rows << a["type"] }
end

Expand Down

0 comments on commit 28da16f

Please sign in to comment.