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

Possible to delete questions that are in use

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Cannot Reproduce
    • 2.9.1
    • None
    • Questions, Quiz
    • MOODLE_29_STABLE

    Description

      We have run into a problem a few times recently where students and teachers go to review quiz attempts and get a fatal error. It seems that questions or question categories that were in use got deleted.

      While we haven't been able to determine exactly what happened, we have been able to reprodice the outward behaviour:

      1. Create Quiz A with questions in the course category
      2. Create Quiz B with the same questions
      3. In Quiz A, go into the question bank and move the questions to "Default of Quiz A"
      4. As a student, attempt Quiz B.
        • You should be able to review your attempt without issue
      5. As a teacher, delete Quiz A
      6. Now attempt to review the quiz attempt in Quiz B as a student or teacher, you will see "Can not find data record in database table context" fatal error

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              emerrill Eric Merrill
              Safat Shahin, Tim Hunt, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie, Tim Hunt, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: