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

Students cannot view quiz feedback/answers while quiz is open or after it is closed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7
    • Fix Version/s: 1.7.1, 1.8
    • Component/s: Quiz
    • Labels:
      None
    • Environment:
      Windows, IIS, MySQL
    • Affected Branches:
      MOODLE_17_STABLE
    • Fixed Branches:
      MOODLE_17_STABLE, MOODLE_18_STABLE

      Description

      Students can view quiz feedback when a quiz is first submitted but cannot come back later to see it. because there are no links to the review page. This is the case even when the quiz is setup to show responses and feedback immediately, later, and when the quiz is closed. I believe the problem is in line 432 of /mod/quiz/view.php. I made the following change on my site and it seems to be working.

      Original:

      // If the attempt is still open, don't link.
      if ($attempt->timefinish)

      { return $linktext; }

      Modified:

      // If the attempt is still open, don't link.
      if ($attempt->timefinish = 0) { return $linktext; }

        Attachments

          Activity

            People

            Assignee:
            timhunt Tim Hunt
            Reporter:
            cbadiyan Chad Badiyan
            Tester:
            Nobody
            Participants:
            Component watchers:
            Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              17/Jan/07