Skip to content

Commit

Permalink
Merge pull request #4 from oat-sa/fix/endless-loop
Browse files Browse the repository at this point in the history
add fix made on the master b1f6502
  • Loading branch information
jbout committed Jun 22, 2015
2 parents d65a2ae + c651a5d commit 867fa90
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions qtism/runtime/tests/AssessmentTestSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -1622,9 +1622,9 @@ public function moveNextTestPart() {

$route = $this->getRoute();
$from = $route->current();


$route->next();
while ($route->valid() === true && $route->current()->getTestPart() === $from->getTestPart()) {
// Move to the next route item. Ignore branchings and preConditions.
$this->nextRouteItem();
}

Expand All @@ -1650,9 +1650,9 @@ public function moveNextAssessmentSection() {

$route = $this->getRoute();
$from = $route->current();


$route->next();
while ($route->valid() === true && $route->current()->getAssessmentSection() === $from->getAssessmentSection()) {
// Move to the next route item by ignoring branchings and preConditions.
$this->nextRouteItem();
}

Expand Down

0 comments on commit 867fa90

Please sign in to comment.