Moodle
  1. Moodle
  2. MDL-23161

Erroneous 'No students enrolled' message in root-level quiz

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.7
    • Fix Version/s: 1.9.10
    • Component/s: Quiz
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE
    • Rank:
      26186

      Description

      1) Create a quiz on the main page, not in any course
      2) complete 1 or more attempts
      3) go to results, click "Download in xls format"

      EXPECTED: get open/ save file dialog

      OUTCOME: directed to a page with "No students enrolled in this course yet" and gibberish (ods/ excel code).

      WORKAROUND/ TEMP FIX: comment out the following line from /mod/quiz/report/overview/
      notify(get_string('nostudentsyet'));

        Activity

        Hide
        Brandon Quinn added a comment -

        Sorry, the line of code you can comment out is in the file /mod/quiz/report/overview/report.php

        Show
        Brandon Quinn added a comment - Sorry, the line of code you can comment out is in the file /mod/quiz/report/overview/report.php
        Hide
        Tim Hunt added a comment -

        A better solution is to wrap the notifications in if (!$download) {

        Fixed. Thanks for reporting this.

        Show
        Tim Hunt added a comment - A better solution is to wrap the notifications in if (!$download) { Fixed. Thanks for reporting this.

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: