From 334a223e13db9110f255b4e5f56de4666aa8db49 Mon Sep 17 00:00:00 2001
From: Jan-Hendrik Willms <tleilax+studip@gmail.com>
Date: Tue, 28 May 2024 12:02:25 +0000
Subject: [PATCH] =?UTF-8?q?Resolve=20"Frageb=C3=B6gen:=20Frageoptionen=20w?=
 =?UTF-8?q?erden=20=C3=BCberschrieben=20wenn=20Fragen=20kopiert=20werden"?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Closes #4208

Merge request studip/studip!3052
---
 resources/assets/javascripts/lib/questionnaire.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/resources/assets/javascripts/lib/questionnaire.js b/resources/assets/javascripts/lib/questionnaire.js
index 08d3a7565d7..9a89348b4b6 100644
--- a/resources/assets/javascripts/lib/questionnaire.js
+++ b/resources/assets/javascripts/lib/questionnaire.js
@@ -112,7 +112,7 @@ const Questionnaire = {
                                 id: id,
                                 questiontype: this.questions[i].questiontype,
                                 internal_name: this.questions[i].internal_name,
-                                questiondata: Object.assign({}, this.questions[i].questiondata)
+                                questiondata: JSON.parse(JSON.stringify(this.questions[i].questiondata)),
                             });
                             this.activeTab = id;
                         },
-- 
GitLab