From 286be9d298ab3ba87a9903c69bcde65f640f5cbc Mon Sep 17 00:00:00 2001 From: jojohoch <joachim.hoch@iqb.hu-berlin.de> Date: Tue, 12 Nov 2024 09:52:57 +0100 Subject: [PATCH] Fix VariableInfo for DropListElement --- projects/common/models/elements/input-elements/drop-list.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/common/models/elements/input-elements/drop-list.ts b/projects/common/models/elements/input-elements/drop-list.ts index 5b9bddb11..9ada532b1 100644 --- a/projects/common/models/elements/input-elements/drop-list.ts +++ b/projects/common/models/elements/input-elements/drop-list.ts @@ -12,7 +12,7 @@ import { environment } from 'common/environment'; import { AbstractIDService, DragNDropValueObject, - InputElementProperties, UIElementProperties, + InputElementProperties, UIElementType, UIElementValue } from 'common/interfaces'; @@ -161,7 +161,7 @@ export class DropListElement extends InputElement implements DropListProperties return [this, ...valueDropLists] .map(dropList => dropList.value as DragNDropValueObject[]) .flat() - .map(option => ({ value: option.id, label: InputElement.stripHTML(option.text) })); + .map(option => ({ value: option.alias, label: InputElement.stripHTML(option.text) })); } return []; } -- GitLab