Display "Total responses to question" bug

Display "Total responses to question" bug

ved Joseph Rézeau -
Antal besvarelser: 4
Billede af Core developers Billede af Particularly helpful Moodlers Billede af Plugin developers Billede af Testers Billede af 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);
Gennemsnitsbedømmelse: -
I svar til Joseph Rézeau

Re: Display "Total responses to question" bug

ved Mike Churchward -
Billede af Core developers Billede af Plugin developers Billede af Testers
Interesting. Can you create an issue on Github for this please? Also indicate which version of questionnaire you are using.
I svar til Mike Churchward

Re: Display "Total responses to question" bug

ved Joseph Rézeau -
Billede af Core developers Billede af Particularly helpful Moodlers Billede af Plugin developers Billede af Testers Billede af Translators
I svar til Joseph Rézeau

Re: Display "Total responses to question" bug

ved 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

Bilag Capture d’écran de 2021-01-13 14-49-49.png
I svar til Rémi Lefeuvre

Re: Display "Total responses to question" bug

ved 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
Bilag Capture d’écran de 2021-01-13 14-53-54.png