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

Quiz restored in an error state if random question uses question category that has changed context

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.1.19, 4.5.6
    • Backup, Quiz
    • None
    • MOODLE_401_STABLE, MOODLE_405_STABLE

      We have two courses. Both courses have the same question categories at the course context level (50.

      In one course, we create a quiz module and move the categories to that context level (70). When we backup this module and restore it in the other course, we get an error when trying to view the question category for the random question on the mod/quiz/edit.php page.

      This quiz functions as expected when previewing.

      Replication Steps

      1. Create Course Category A
      2. Create Course A
      3. In question bank, create question category (with question) on course level category
      4. Create course category B
      5. Copy course A into course B in category B
      6. In Course A, create a quiz module with a random question using the created question category
      7. Visit quiz module > Question bank > Categories
      8. Move the created question category to the quiz module level category
      9. Visit quiz module > Questions
      10. Create a random question using the moved question category
      11. Backup this quiz module
      12. In Course B, restore this quiz module
      13. Visit the restored quiz module > Questions tab
      14. Edit the random question (pencil icon)
      15. See error

            lucaboesch Luca Bösch
            djarran Djarran Cotleanu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

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