From 256bf5e3c555cb6301e2518f9aed66194e1a7bb1 Mon Sep 17 00:00:00 2001
From: jojohoch <joachim.hoch@iqb.hu-berlin.de>
Date: Fri, 14 Jan 2022 08:33:48 +0100
Subject: [PATCH] Start the valid value range for RadioButtonGroup at 1

---
 .../common/ui-elements/radio/radio-button-group.component.ts  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/projects/common/ui-elements/radio/radio-button-group.component.ts b/projects/common/ui-elements/radio/radio-button-group.component.ts
index ed5db71ae..1e6c4c29f 100644
--- a/projects/common/ui-elements/radio/radio-button-group.component.ts
+++ b/projects/common/ui-elements/radio/radio-button-group.component.ts
@@ -28,8 +28,8 @@ import { RadioButtonGroupElement } from './radio-button-group-element';
         <mat-radio-button *ngFor="let option of elementModel.options; let i = index"
                           [ngClass]="{ 'strike' : elementModel.strikeOtherOptions &&
                                                   elementFormControl.value !== null &&
-                                                  elementFormControl.value !== i }"
-                          [value]="i"
+                                                  elementFormControl.value !== i + 1 }"
+                          [value]="i + 1"
                           [style.pointer-events]="elementModel.readOnly ? 'none' : 'unset'"
                           [style.line-height.%]="elementModel.fontProps.lineHeight">
           {{option}}
-- 
GitLab