From afdade63a31bdff44f17d213a9c3f64e87ebe2ab Mon Sep 17 00:00:00 2001 From: paf <paf@titelfrei.de> Date: Mon, 17 Aug 2020 15:41:10 +0200 Subject: [PATCH] fix bug that disabled the questionaire reason: previous API version sent options as #-separated string list, not as array, and a fallback for that was still existent --- package.json | 2 +- src/app/sys-check/questionnaire/questionnaire.component.ts | 4 ---- src/environments/environment.dev.ts | 4 ++-- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index e0482246..365713d1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "itc-ng", - "version": "3.1.1", + "version": "3.1.2", "license": "MIT", "repository": { "type": "git", diff --git a/src/app/sys-check/questionnaire/questionnaire.component.ts b/src/app/sys-check/questionnaire/questionnaire.component.ts index e605d4b3..b5f25b3b 100644 --- a/src/app/sys-check/questionnaire/questionnaire.component.ts +++ b/src/app/sys-check/questionnaire/questionnaire.component.ts @@ -27,11 +27,7 @@ export class QuestionnaireComponent implements OnInit { } else { this.questions = cc.questions; const group: any = {}; - this.questions.forEach(question => { - if (question.value.length > 0) { - question.options = question.value.split('#'); - } group[question.id] = new FormControl(''); }); this.form = new FormGroup(group); diff --git a/src/environments/environment.dev.ts b/src/environments/environment.dev.ts index e93c2dfb..c4f246ae 100644 --- a/src/environments/environment.dev.ts +++ b/src/environments/environment.dev.ts @@ -4,7 +4,7 @@ export const environment = { production: false, - testcenterUrl: 'http://localhost:8000/', + testcenterUrl: '/api/', appPublisher: 'IQB - Institut zur Qualitätsentwicklung im Bildungswesen', - apiVersionExpected: '4.0.0' + apiVersionExpected: '5.0.1' }; -- GitLab