Closed (outdated)
Project:
Quiz
Version:
7.x-4.0-beta1
Component:
Code - Quiz core
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Mar 2013 at 08:43 UTC
Updated:
30 Mar 2017 at 16:48 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ryangambito commentedComment #2
Som@roy commentedPlease use this.I have solved it for Drupal 6.
write this code in _quiz_resume_existing_quiz($quiz, $uid, $rid) function line 2963.
/*som's patch*/
$sql_quiz="select time_left from `quiz_node_results` where result_id=".$rid."";
$sql_res=db_query($sql_quiz);
$sql_row=db_fetch_object($sql_res);
$_SESSION['quiz_'. $quiz->nid]['question_duration'] = $sql_row->time_left;
/*som's patch*/
Comment #3
sivaji_ganesh_jojodae commentedFix mentioned above is fine, need to get time left from {quiz_node_results} instead of using $quiz->time_limit. I need some time to apply this fix, test & commit the same to git.
Comment #4
noobnathan commentedkindly try this patch.. I used time_left from {quiz_node_results} instead of $quiz->time_lime in Drupal 7.
Comment #5
djdevinThis issue is being closed because it was filed against a version that is no longer supported.
If the issue still persists in the latest version of Quiz, please open a new issue.