From 80096fa23642814ad3702d1980128b372f72c938 Mon Sep 17 00:00:00 2001 From: Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> Date: Wed, 20 Oct 2021 16:27:21 +0200 Subject: [PATCH] allow empty list of dates to be set, fixes #351 --- lib/models/Statusgruppen.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/models/Statusgruppen.php b/lib/models/Statusgruppen.php index 30d2149d8a5..68b902f62ac 100644 --- a/lib/models/Statusgruppen.php +++ b/lib/models/Statusgruppen.php @@ -143,6 +143,8 @@ class Statusgruppen extends SimpleORMap implements PrivacyObject // Set assigned dates. if ($dates) { $group->dates = CourseDate::findMany($dates); + } else { + $group->dates = []; } $group->store(); -- GitLab