Skip to content

Commit

Permalink
Fix route position after Binary persistence.
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Nov 24, 2015
1 parent 9b1cb22 commit f62a42c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/qtism/runtime/storage/binary/AbstractQtiBinaryStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ public function persist(AssessmentTestSession $assessmentTestSession)
$access->writeTinyInt($route->count());
$itemSessionStore = $assessmentTestSession->getAssessmentItemSessionStore();
$pendingResponseStore = $assessmentTestSession->getPendingResponseStore();
$oldRoutePosition = $route->getPosition();

foreach ($route as $routeItem) {
$item = $routeItem->getAssessmentItemRef();
Expand Down Expand Up @@ -183,6 +184,8 @@ public function persist(AssessmentTestSession $assessmentTestSession)
continue;
}
}

$route->setPosition($oldRoutePosition);

// Deal with test session configuration.
// !!! AutoForward (not in use anymore, fake it).
Expand Down

0 comments on commit f62a42c

Please sign in to comment.