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

There is nothing to prevent deletion of questions used by a random question

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.2, 1.8.1
    • Fix Version/s: 2.1
    • Component/s: Quiz
    • Labels:
      None
    • Environment:
      All
    • URL:
      /mod/quiz/review.php?q=75&attempt=4731
    • Affected Branches:
      MOODLE_17_STABLE, MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE

      Description

      Steps to reproduce:

      1. Create a category X with some questions in.
      2. Add a random question to a test quiz using this category.
      3. Attempt this quiz as a student.
      4. Delete the questions from this category.
      5. Review the student's attempt.

      Actual behaviour:

      At step 5, you will see the error "This question has been deleted. Please contact your teacher" (which, incidentally, should have a full stop at the end.)

      Expected behaviour:

      At step 4, any questions that are in use should not be really deleted, but instead should merely have their deleted flag set.

        Attachments

          Activity

            People

            • Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                1/Jul/11