diff options
| author | Thomas Hackl <hackl@data-quest.de> | 2023-08-09 13:56:19 +0000 |
|---|---|---|
| committer | Thomas Hackl <hackl@data-quest.de> | 2023-08-09 13:56:19 +0000 |
| commit | 1403583c57b00b3bbff67be5e7f54ba8ce0c472f (patch) | |
| tree | 9ce2c374e6a956b65a6b5845b6d455b578829e1a | |
| parent | fa0f8936de4e2cc40cfe166d0e6fe765c01709ef (diff) | |
Resolve "SQL-Fehler beim Löschen von Veranstaltungen"
Closes #2963
Merge request studip/studip!2015
| -rw-r--r-- | lib/classes/Seminar.class.php | 7 | ||||
| -rw-r--r-- | lib/models/StudipStudyArea.class.php | 1 |
2 files changed, 1 insertions, 7 deletions
diff --git a/lib/classes/Seminar.class.php b/lib/classes/Seminar.class.php index 18c045f..33fc50b 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 877b5a8..74c50a7 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 |
