From fe05368d5e4eec15f66e03a8687504872e3b9f2a Mon Sep 17 00:00:00 2001 From: Gabriel Felipe Soares Date: Fri, 22 Sep 2023 12:05:19 +0200 Subject: [PATCH] feat: make the first item consider testPart pre-conditions --- src/qtism/runtime/tests/AbstractSessionManager.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/qtism/runtime/tests/AbstractSessionManager.php b/src/qtism/runtime/tests/AbstractSessionManager.php index 9fa7d5aa3..7228b2836 100644 --- a/src/qtism/runtime/tests/AbstractSessionManager.php +++ b/src/qtism/runtime/tests/AbstractSessionManager.php @@ -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);