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

variant field of question_attempts table is not getting backed up by Moodle backup

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.3.11
    • Fix Version/s: 2.4.9, 2.5.5, 2.6.2
    • Component/s: Questions
    • Labels:
    • Testing Instructions:
      Hide
      1. Create a test course.
      2. Add a quiz.
      3. Create a calculated simple question with a few dataset items (e.g. 3).
      4. Attempt the quiz once as a student.
      5. As teacher/admin, look at Quiz admin -> Results -> Statistics. (Following MDL-41757 this should let you see which variant the student got of each question.)
      6. Backup the course with user data.
      7. Restore it as a new course.
      8. Go to the Quiz statistics in the new course, and verify that the variant of each question has been correctly preserved.

      (If you cannot easily see this in the quiz statistics, then you may have to look in the database, question_attempts.variant columns.)

      Show
      Create a test course. Add a quiz. Create a calculated simple question with a few dataset items (e.g. 3). Attempt the quiz once as a student. As teacher/admin, look at Quiz admin -> Results -> Statistics. (Following MDL-41757 this should let you see which variant the student got of each question.) Backup the course with user data. Restore it as a new course. Go to the Quiz statistics in the new course, and verify that the variant of each question has been correctly preserved. (If you cannot easily see this in the quiz statistics, then you may have to look in the database, question_attempts.variant columns.)
    • Affected Branches:
      MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      It seems to have been omitted from the list of fields to backup.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    10/Mar/14