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

Backup and restore can randomise the order of database rows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: 2.0.2
    • Fix Version/s: None
    • Component/s: Backup
    • Affected Branches:
      MOODLE_20_STABLE

      Description

      When a quiz with multichoice questions is restored from backup, the order of choices inside the questions gets reversed. Not sure if it happens every time, but it took some hours for me to find where the problem was in our case.

      I made a patch to the questions backup routine so that the corresponding XML records would be ordered by ID properly.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              nebgor Aparup Banerjee
              Reporter:
              svidusov Sergey Vidusov
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: