Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-17235

Quiz overview report is not showing all the students when the quiz has feedback and the "Show All Studients" option is selected

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.8.8
    • 1.8.7
    • Quiz
    • None
    • all platforms
    • MOODLE_18_STABLE
    • MOODLE_18_STABLE

      • Summary

      Quiz overview report is not showing all the participans when the quiz has feedback and the "Show All Studients" option is selected

      • Description

      We think the problem is located near line 412 (mod/quiz/report/overview.php), in this code:

      if ($hasfeedback) {
      $factor = $quiz->grade/$quiz->sumgrades;
      $select .= ', qf.feedbacktext ';
      $from .= " JOIN {$CFG->prefix}quiz_feedback qf ON " .
      "qf.quizid = $quiz->id AND qf.mingrade <= qa.sumgrades * $factor AND qa.sumgrades * $factor < qf.maxgrade";
      }

      A LEFT before the JOIN is missing, so the correct sql should be:

      $from .= " LEFT JOIN {$CFG->prefix}quiz_feedback qf ON " .
      "qf.quizid = $quiz->id AND qf.mingrade <= qa.sumgrades * $factor AND qa.sumgrades * $factor < qf.maxgrade";

      • Steps to Reproduce:
      • Go to a quiz with user attemps and feedback
      • Select Results
      • Run a report selecting "Show all students" at the bottom
      • Actual Results: Only the students with attemps
      • Expected Results: All the students in the course or group

            timhunt Tim Hunt
            juan-leyva Juan Leyva (CV&A) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.