From e8315d101949666fcc5052de3650c5005b2176ec Mon Sep 17 00:00:00 2001 From: Matthias Grief Date: Tue, 7 Jan 2025 10:26:59 +0100 Subject: [PATCH] Falsche Standardauswahl des Faches beim Erstellen eines neuen Themas behoben --- webseite/topicEditor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webseite/topicEditor.php b/webseite/topicEditor.php index 51a69ac..e322136 100644 --- a/webseite/topicEditor.php +++ b/webseite/topicEditor.php @@ -52,8 +52,8 @@ if (isset($_GET['subject']) && isset($_GET['topic'])) { $defaultValues['formulas'] = implode(";;;;", $tasks); $defaultValues['article'] = $editingTopic->getFinishedArticle(); } -} else if (isset($_GET['subjectId'])) { - $defaultValues['subjectId'] = $_GET['subjectId']; +} else if (isset($_GET['subject'])) { + $defaultValues['subjectId'] = $_GET['subject']; } if ($_SERVER['REQUEST_METHOD'] == 'POST') {