Skip to content
Snippets Groups Projects
Commit 80096fa2 authored by Elmar Ludwig's avatar Elmar Ludwig
Browse files

allow empty list of dates to be set, fixes #351

parent d201ad76
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
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