Users can take a newly created quiz that has no questions assigned to it. Additionally, it seems to grab all questions in the system when building the quiz questions.

CommentFileSizeAuthor
#1 quiz_no_questions.patch1.29 KBseanbfuller

Comments

seanbfuller’s picture

Title: Deal with quizzes that have not questions » Deal with quizzes that have no questions
StatusFileSize
new1.29 KB

This patch adds a check in quiz_take_quiz, right after quiz_build_question_list is called, to make sure questions have been returned. If not, it displays and error and returns before setting anything in the session.

seanbfuller’s picture

Status: Active » Needs review
seanbfuller’s picture

Status: Needs review » Fixed

Committed to HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)

  • Commit 1fa920c on 4.7.x-1.x, 5.x-1.x, 5.x-2.x, 6.x-2.x, 6.x-3.x, 6.x-4.x, 6.x-5.x, 6.x-6.x, 7.x-4.x, master, 7.x-5.x by seanbfuller:
    #88685 by seanbfuller: Adds a check for quizzes that don't have...

  • Commit 1fa920c on 4.7.x-1.x, 5.x-1.x, 5.x-2.x, 6.x-2.x, 6.x-3.x, 6.x-4.x, 6.x-5.x, 6.x-6.x, 7.x-4.x, master, 7.x-5.x, quiz-pages by seanbfuller:
    #88685 by seanbfuller: Adds a check for quizzes that don't have...

  • Commit 1fa920c on 4.7.x-1.x, 5.x-1.x, 5.x-2.x, 6.x-2.x, 6.x-3.x, 6.x-4.x, 6.x-5.x, 6.x-6.x, 7.x-4.x, master, 7.x-5.x, quiz-pages, 2269219 by seanbfuller:
    #88685 by seanbfuller: Adds a check for quizzes that don't have...

  • Commit 1fa920c on 4.7.x-1.x, 5.x-1.x, 5.x-2.x, 6.x-2.x, 6.x-3.x, 6.x-4.x, 6.x-5.x, 6.x-6.x, 7.x-4.x, master, 7.x-5.x, 2269219 by seanbfuller:
    #88685 by seanbfuller: Adds a check for quizzes that don't have...