From f54c0496e2d3c64775ba87f78bc86853fa84b8e4 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+studip@gmail.com> Date: Wed, 27 Oct 2021 11:37:01 +0000 Subject: [PATCH] Fixes #389 --- app/controllers/course/studygroup.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/app/controllers/course/studygroup.php b/app/controllers/course/studygroup.php index e979e2fc559..80f71988ebe 100644 --- a/app/controllers/course/studygroup.php +++ b/app/controllers/course/studygroup.php @@ -442,17 +442,6 @@ class Course_StudygroupController extends AuthenticatedController // test whether we have a group name... if (!Request::get('groupname')) { $errors[] = _("Bitte Gruppennamen angeben"); - //... if so, test if this is not taken by another group - } else { - $query = "SELECT 1 FROM seminare WHERE name = ? AND Seminar_id != ?"; - $statement = DBManager::get()->prepare($query); - $statement->execute([ - Request::get('groupname'), - $id, - ]); - if ($statement->fetchColumn()) { - $errors[] = _("Eine Veranstaltung/Studiengruppe mit diesem Namen existiert bereits. Bitte wählen Sie einen anderen Namen"); - } } if (count($errors)) { $this->flash['errors'] = $errors; -- GitLab