Closed (duplicate)
Project:
Quiz
Version:
7.x-5.x-dev
Component:
Code - Quiz core
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 May 2014 at 02:41 UTC
Updated:
28 Jan 2016 at 17:43 UTC
Jump to comment: Most recent
Comments
Comment #1
ezraw commentedIn case it's related, the same issue happens with a quiz that has allow skipping to be set.
Steps to reproduce
The URL after "leave blank" is node/####/take/3
Comment #2
djdevinFixed, but the current question is not stored anywhere, so it defaults to Question 1.
The user's answers however are preserved.
Comment #4
ezraw commentedConfirmed fixed.
General feedback
Comment #7
jim22 commentedIs there any reason why this would work when I create a new Quiz, but doesn't work when I update an existing Quiz?
I updated from Quiz module from 7.x-4.x to 7.x-5.x, and checked the "Allow Resume" and "Allow Skipping questions". But I still get the following error after logging out, logging back in, and trying to resume the quiz.
You have already taken this quiz 1 time. You may not take it again.
Thanks for any help.
Comment #8
djdevinHi,
I don't think that's the same issue. The max amount of takes is controlled by "Allowed number of attempts" and not skipping/resuming.
However if you find out what "allowed number of attempts" doesn't work, feel free to open an issue.
Comment #10
sarhugo commentedI'm having the same issue. When setting the max amount of takes it prevents to resume the quiz because it checks against every result (ended and not ended).
At function quiz_start_check($quiz):
should be replaced by:
Comment #11
djdevinWill be fixed in #2412389: resume an open take by clicking on the "take" link
Comment #12
_shelest commentedError in quiz_take_page when
$_SESSION['quiz'][$quiz_result->nid]['current'] =1But in quiz_access_question we have
And that mean if backwards navigation is disabled and we already answered on this question number "1", this function return FALSE.
As solution:
$_SESSION['quiz'][$quiz_result->nid]['current'] = quiz_result_get_resume_next_question($quiz_result->result_id);and
Comment #13
djdevinThis issue was already fixed in 5.x-dev, please open a new issue with steps to reproduce.