From 5bebcd24c361a846280af1364d991efebb816491 Mon Sep 17 00:00:00 2001 From: paf <paf@titelfrei.de> Date: Mon, 3 Aug 2020 09:26:32 +0200 Subject: [PATCH] Apply XSD-changes (restrictions now have named parameters) --- src/app/test-controller/test-controller.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/test-controller/test-controller.component.ts b/src/app/test-controller/test-controller.component.ts index 47307ce3..7e2fd1cd 100644 --- a/src/app/test-controller/test-controller.component.ts +++ b/src/app/test-controller/test-controller.component.ts @@ -90,13 +90,13 @@ export class TestControllerComponent implements OnInit, OnDestroy { const restrictionElements = TestControllerComponent.getChildElements(restrictionElement); for (let childIndex = 0; childIndex < restrictionElements.length; childIndex++) { if (restrictionElements[childIndex].nodeName === 'CodeToEnter') { - const restrictionParameter = restrictionElements[childIndex].getAttribute('parameter'); + const restrictionParameter = restrictionElements[childIndex].getAttribute('code'); if ((typeof restrictionParameter !== 'undefined') && (restrictionParameter !== null)) { codeToEnter = restrictionParameter.toUpperCase(); codePrompt = restrictionElements[childIndex].textContent; } } else if (restrictionElements[childIndex].nodeName === 'TimeMax') { - const restrictionParameter = restrictionElements[childIndex].getAttribute('parameter'); + const restrictionParameter = restrictionElements[childIndex].getAttribute('minutes'); if ((typeof restrictionParameter !== 'undefined') && (restrictionParameter !== null)) { maxTime = Number(restrictionParameter); if (isNaN(maxTime)) { -- GitLab