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

Possible to delete questions that are in use

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.9.1
    • Fix Version/s: None
    • Component/s: Questions, Quiz
    • Labels:
    • Affected Branches:
      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

              Assignee:
              Unassigned
              Reporter:
              emerrill Eric Merrill
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: