OpenSourcePolitics / decidim_cards

GNU Affero General Public License v3.0
2 stars 0 forks source link

Correct counting of matrices question answers #111

Closed Dynnammo closed 2 years ago

Dynnammo commented 2 years ago
        from decidim_forms_answers
            join decidim_forms_questions on decidim_forms_questions.id = decidim_forms_answers.decidim_question_id
            join decidim_forms_answer_choices on decidim_forms_answer_choices.decidim_answer_id = decidim_forms_answers.id
            join decidim_forms_question_matrix_rows on decidim_forms_question_matrix_rows.id = decidim_forms_answer_choices.decidim_question_matrix_row_id

i.e switch from joining on question to join on matrix_row ID

Dynnammo commented 2 years ago

Fixed in #114