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

Restore of random question using shared question bank results in invalid category

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 5.0
    • 5.0
    • Questions, Quiz

      Steps to reproduce:
      1. Create 3 courses, "Course1" and "Course2" and "Course3"
      2. Add a question bank to "Course1", add 2 questions to the default category.
      3. Add a quiz to "Course2". Add a random question to the quiz with the category filter set to the Course1 question bank's default category.
      4. Back up the quiz.
      5. Restore the quiz to Course3.
      6. Open the quiz and go to the Questions tab.
      Expected: The random question shows the Course1 question bank's default category
      Actual: The random question shows a red notice that the category is missing.

      This happens because the restore process creates all question categories that are in the backup then decides later if they're needed, but blindly points any restored set references to the new category without working out whether we're going to keep it, or whether we should point to the original one instead.

            marxjohnson Mark Johnson
            marxjohnson Mark Johnson
            Luca Bösch Luca Bösch
            Tim Hunt Tim Hunt
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 27 minutes
                27m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.