The following errors are coming when clicking on a quiz already taken

Notice: Undefined index: quiz_26 in quiz_take_quiz() (line 2208 of /var/www/drupal/sites/all/modules/quiz/quiz.module).
Notice: Undefined index: quiz_26 in quiz_take_quiz() (line 2209 of /var/www/drupal/sites/all/modules/quiz/quiz.module).
Notice: Undefined index: quiz_26 in quiz_take_quiz() (line 2227 of /var/www/drupal/sites/all/modules/quiz/quiz.module).
Notice: Undefined index: quiz_26 in quiz_take_quiz() (line 2231 of /var/www/drupal/sites/all/modules/quiz/quiz.module).

CommentFileSizeAuthor
#2 quiz-quiz_already_taken-2152295-2.patch856 bytesbohemier

Comments

bohemier’s picture

I can confirm this behavior

bohemier’s picture

StatusFileSize
new856 bytes
ktrev’s picture

Thanks for the patch, This works

bohemier’s picture

It works but a better solution can be found here: https://drupal.org/node/1937226

The take quiz buttons should not be available in the first place and that patch will fix this.

czigor’s picture

Status: Active » Closed (duplicate)

Duplicate of #1937226: quiz_availability doesn't take the number of times taken into consideration. At least the patch over there solves this too.