diff options
| author | Moritz Strohm <strohm@data-quest.de> | 2026-02-19 16:15:17 +0100 |
|---|---|---|
| committer | Moritz Strohm <strohm@data-quest.de> | 2026-02-19 16:15:17 +0100 |
| commit | 504e845316de3251c3dfc095523256db9d6b5208 (patch) | |
| tree | ba3c46d6607b8c1f9a0db1b219de0a40184fb128 | |
| parent | e5be38221fa9ddf453224417b2a7d9fe24fad633 (diff) | |
fixed error when cancelling course datesbiest-06280
| -rw-r--r-- | lib/models/CourseDate.php | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/models/CourseDate.php b/lib/models/CourseDate.php index 87a56e8..63d6bf9 100644 --- a/lib/models/CourseDate.php +++ b/lib/models/CourseDate.php @@ -418,17 +418,6 @@ class CourseDate extends SimpleORMap implements PrivacyObject, Event $ex_date = new CourseExDate(); $ex_date->setData($date); $ex_date->setId($ex_date->getNewId()); - if ($rooms = $this->getRooms()) { - $db = DBManager::get(); - $stmt = $db->prepare( - "INSERT INTO `ex_termin_rooms` (`ex_termin_id`, `room_id`, `mkdate`, `chdate`) - VALUES (:date_id, :room_id, UNIX_TIMESTAMP(), UNIX_TIMESTAMP())" - ); - foreach ($rooms as $room) { - $stmt->execute(['date_id' => $ex_date->id, 'room_id' => $room->id]); - } - } - if ($ex_date->store()) { //Update some (but not all) relations to the date so that they |
