From f62a42c1adbbec4d54575a821f1b8f4a857bec54 Mon Sep 17 00:00:00 2001 From: = Date: Tue, 24 Nov 2015 16:33:33 +0100 Subject: [PATCH] Fix route position after Binary persistence. --- src/qtism/runtime/storage/binary/AbstractQtiBinaryStorage.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/qtism/runtime/storage/binary/AbstractQtiBinaryStorage.php b/src/qtism/runtime/storage/binary/AbstractQtiBinaryStorage.php index 41be01b62..0554dbaf3 100644 --- a/src/qtism/runtime/storage/binary/AbstractQtiBinaryStorage.php +++ b/src/qtism/runtime/storage/binary/AbstractQtiBinaryStorage.php @@ -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(); @@ -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).