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

mod_quiz user overrides are not restored properly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.8, 2.9
    • Fix Version/s: 2.7.8, 2.8.6
    • Component/s: Backup, Quiz
    • Labels:
    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_28_STABLE, MOODLE_29_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-49803_master

      Description

      While testing https://tracker.moodle.org/browse/MDL-49642 Mark Nelson 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

              Assignee:
              dmonllao David Monllaó
              Reporter:
              dmonllao David Monllaó
              Peer reviewer:
              Tim Hunt
              Integrator:
              Dan Poltawski
              Tester:
              Frédéric Massart
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

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