app/views/decidim/forms/admin/questionnaires/_question.html.erb in decidim-forms-0.24.3 vs app/views/decidim/forms/admin/questionnaires/_question.html.erb in decidim-forms-0.25.0.rc1

- old
+ new

@@ -102,10 +102,10 @@ <%= form.hidden_field :position, value: question.position || 0, disabled: !editable %> <%= form.hidden_field :deleted, disabled: !editable %> <div class="questionnaire-question-matrix-rows" data-template="<%= matrix_row_template_selector %>"> <div class="questionnaire-question-matrix-rows-list"> - <% question.matrix_rows.each do |matrix_row| %> + <% question.matrix_rows_by_position.each do |matrix_row| %> <%= fields_for "questionnaire[questions][#{question.to_param}][matrix_rows][]", matrix_row do |matrix_row_form| %> <%= render "decidim/forms/admin/questionnaires/matrix_row", form: matrix_row_form, question: question, editable: editable %> <% end %> <% end %> </div>