Display "Total responses to question" bug

Display "Total responses to question" bug

by Joseph Rézeau -
Number of replies: 4
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Situation is similar to the one in my previous post...

  1. A questionnaire is set to Save/Resume answers YES.
  2. Students A, B, C answer the questionnaire completely and submit it.
  3. Students D and E start to answer the questions and Save their answers without submitting.
  4. Teacher decides to View all Responses. The "Total responses to question" line shows a discrepancy between the number of respondents to the question and the number of responses, as per attached screenshot.

Solution suggested is to add one line to \questionnaire\classes\responsetype\responsetype.php in public function get_results_tags():

$respondents = min($respondents, $participants);
Average of ratings: -
In reply to Joseph Rézeau

Re: Display "Total responses to question" bug

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
Interesting. Can you create an issue on Github for this please? Also indicate which version of questionnaire you are using.
In reply to Mike Churchward

Re: Display "Total responses to question" bug

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
In reply to Joseph Rézeau

Re: Display "Total responses to question" bug

by Rémi Lefeuvre -

Hi,

Same issue for me but only for checkbox questions. It seems to count incomplete responses.

Have a good day,

Rémi

Attachment Capture d’écran de 2021-01-13 14-49-49.png
In reply to Rémi Lefeuvre

Re: Display "Total responses to question" bug

by Rémi Lefeuvre -
If i want to see results for just one group, there is also a problem with checkbox questions.
It count all responses, incomplete ones too.
Bye,
Rémi
Attachment Capture d’écran de 2021-01-13 14-53-54.png