From 184eb57718596600f9307ce35cf9adec8d86a980 Mon Sep 17 00:00:00 2001 From: bugalot Date: Wed, 22 Jul 2015 15:25:22 +0200 Subject: [PATCH] MoveNext and MoveBack were not behaving correctly when $allowTimeout = false --- qtism/runtime/tests/AssessmentTestSession.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qtism/runtime/tests/AssessmentTestSession.php b/qtism/runtime/tests/AssessmentTestSession.php index 9c7172c6e..72f15f2af 100644 --- a/qtism/runtime/tests/AssessmentTestSession.php +++ b/qtism/runtime/tests/AssessmentTestSession.php @@ -1421,7 +1421,7 @@ public function moveNext($allowTimeout = false) { if ($allowTimeout === false) { try { // Do not check min times, include item timings. - $this->checkTimeLimits(false, true); + $this->checkTimeLimits(false, true, false); // No exception thrown, we found a non timed-out item to be // presented to the candidate. @@ -1474,10 +1474,10 @@ public function moveBack($allowTimeout = false) { while ($route->isFirst() === false) { - if ($allowTimeout = false) { + if ($allowTimeout === false) { try { // Do not check min times, include item timings. - $this->checkTimeLimits(false, true); + $this->checkTimeLimits(false, true, false); // No exception thrown, return. $this->interactWithItemSession(); @@ -1499,7 +1499,7 @@ public function moveBack($allowTimeout = false) { // of the first RouteItem of the test... if ($allowTimeout === false) { try { - $this->checkTimeLimits(false, true); + $this->checkTimeLimits(false, true, false); $this->interactWithItemSession(); } catch (AssessmentTestSessionException $e) {