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

Restoring of user attempts in quiz module (attached solution)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.5.4
    • Fix Version/s: 1.6.7, 1.7.5, 1.8.6, 1.9.1
    • Component/s: Quiz
    • Labels:
      None
    • Environment:
      All
    • Affected Branches:
      MOODLE_15_STABLE
    • Fixed Branches:
      MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      • Introduction:

      This issue AFAIK was discussed on MDL-3159, and reported on bugs #4054, #4139 and #4608.

      At quiz changelog, appears the following entry:

      2005-06-06 Monday 04:25 gustav_delius * restorelib.php: Restoring of user attempts and states disabled for now, see MDL-3159

      I found a post at moodle forums, see:

      http://moodle.org/mod/forum/discuss.php?d=30923

      This post has a version of restorelib.php with attempts restore implemented.

      I've used this modified version verifying the code against latest stable CVS version which at this time is 1.58.2.6 2006/02/14 22:55:11, for a mass restore due to an hard disk crash.

      • Now, some interesting numbers involved on this work:
      • 6989 users;
      • 773 courses;
      • 385 quiz;
      • 9041 questions;
      • 21025 attempts;

      and 72 long hours recovering it .

      All restored quizzes seem to be OK. For now, there were no problems detected among dozens of hand verifications. If some problem appears, I'll report them here.

      Hope Gustav can integrate this code, will surely be very appreciated by moodle community.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              timhunt Tim Hunt
              Reporter:
              paulo.matos Paulo Matos
              Tester:
              Nobody
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                15/May/08