Skip to content

Commit

Permalink
feat: make the first item consider testPart pre-conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielfs7 committed Sep 22, 2023
1 parent c917fd2 commit fe05368
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/qtism/runtime/tests/AbstractSessionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ protected function createRoute(AssessmentTest $test): Route
// Do the same as for branch rules for pre conditions, except that they must be
// attached on the first item of the route.
$route->getFirstRouteItem()->addPreConditions($current->getPreConditions());
$route->getFirstRouteItem()->addPreConditions($testPart->getPreConditions());
}

array_push($routeStack, $route);
Expand Down

0 comments on commit fe05368

Please sign in to comment.