Skip to content
Snippets Groups Projects
Commit 1403583c authored by Thomas Hackl's avatar Thomas Hackl
Browse files

Resolve "SQL-Fehler beim Löschen von Veranstaltungen"

Closes #2963

Merge request studip/studip!2015
parent fa0f8936
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment