diff --git a/webseite/topicEditor.php b/webseite/topicEditor.php index 8886dab..51a69ac 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['subject'])) { - $defaultValues['subjectId'] = $_GET['subject']; +} else if (isset($_GET['subjectId'])) { + $defaultValues['subjectId'] = $_GET['subjectId']; } if ($_SERVER['REQUEST_METHOD'] == 'POST') { @@ -350,10 +350,33 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') { id="relatedTopicSelect" class="w-full px-4 py-3 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 text-lg enabled:hover:border-gray-400" value=""> + + + + +