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

Selecting random questions to start a quiz attempt does not handle draft state correctly

XMLWordPrintable

      Steps to reproduce:

      1. In the question bank, create a single question 'Test question' in 'Test category' with two versions, v1 - ready, and v2 - draft.
      2. Create a quiz, set to pick a single random qustion from 'Test category'
      3. Attempt quiz as a Student.

      Expected result: Student gets a quiz attempt with v1 of Test question.

      Actual result: Error "There are not enough questions in Test category to create the question Random question (2)."

      Discovered by Martin Latschenberger and reported in the quiz forum: https://moodle.org/mod/forum/discuss.php?d=455845

            timhunt Tim Hunt
            timhunt Tim Hunt
            Mark Johnson Mark Johnson
            Andrew Lyons Andrew Lyons
            CiBoT CiBoT
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 1 minute
                3h 1m

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