From 1403583c57b00b3bbff67be5e7f54ba8ce0c472f Mon Sep 17 00:00:00 2001
From: Thomas Hackl <hackl@data-quest.de>
Date: Wed, 9 Aug 2023 13:56:19 +0000
Subject: [PATCH] =?UTF-8?q?Resolve=20"SQL-Fehler=20beim=20L=C3=B6schen=20v?=
 =?UTF-8?q?on=20Veranstaltungen"?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Closes #2963

Merge request studip/studip!2015
---
 lib/classes/Seminar.class.php        | 7 +------
 lib/models/StudipStudyArea.class.php | 1 -
 2 files changed, 1 insertion(+), 7 deletions(-)

diff --git a/lib/classes/Seminar.class.php b/lib/classes/Seminar.class.php
index 18c045f62bc..33fc50b5bc4 100644
--- a/lib/classes/Seminar.class.php
+++ b/lib/classes/Seminar.class.php
@@ -1551,12 +1551,7 @@ class Seminar
             $this->createMessage(sprintf(_('%s Funktionen/Gruppen gelöscht.'), $count));
         }
 
-        // Alle Eintraege aus dem Vorlesungsverzeichnis rauswerfen
-        $sem_tree = TreeAbstract::GetInstance('StudipSemTree');
-        $db_ar = $sem_tree->DeleteSemEntries(null, $s_id);
-        if ($db_ar > 0) {
-            $this->createMessage(sprintf(_("%s Zuordnungen zu Bereichen archiviert."), $db_ar));
-        }
+        // seminar_sem_tree entries are deleted automatically on deletion of the Course object.
 
         // Alle Termine mit allem was dranhaengt zu diesem Seminar loeschen.
         if (($db_ar = SingleDateDB::deleteAllDates($s_id)) > 0) {
diff --git a/lib/models/StudipStudyArea.class.php b/lib/models/StudipStudyArea.class.php
index 877b5a86396..74c50a78409 100644
--- a/lib/models/StudipStudyArea.class.php
+++ b/lib/models/StudipStudyArea.class.php
@@ -21,7 +21,6 @@
  * @property string priority database column
  * @property string info database column
  * @property string name database column
- * @property string studip_object_id database column
  * @property string type database column
  * @property SimpleORMapCollection _children has_many StudipStudyArea
  * @property Institute institute belongs_to Institute
-- 
GitLab