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

mod_quiz user overrides are not restored properly

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.8, 2.9
    • 2.7.8, 2.8.6
    • Backup, Quiz
    • MOODLE_28_STABLE, MOODLE_29_STABLE
    • MOODLE_27_STABLE, MOODLE_28_STABLE
    • MDL-49803_master
    • Hide
      1. Create a course + a quiz instance
      2. Add group and user overrides
      3. Backup the course with user info
      4. Restore it
      5. Access the restored quiz group overrides and useroverrides
      6. They SHOULD be properly restored
      Show
      Create a course + a quiz instance Add group and user overrides Backup the course with user info Restore it Access the restored quiz group overrides and useroverrides They SHOULD be properly restored

    Description

      While testing https://tracker.moodle.org/browse/MDL-49642 markn noticed that user overrides were not being updated. Tracking the problem, when we restore the quiz, get_mappingid sets the userid or the groupid to 0. The override cleanup process deletes these records as they expect a null value.

      Attachments

        Issue Links

          Activity

            People

              dmonllao David Monllaó
              dmonllao David Monllaó
              Tim Hunt Tim Hunt
              Dan Poltawski Dan Poltawski
              Frédéric Massart Frédéric Massart
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/May/15