Skip to content
Snippets Groups Projects
Commit d549af7e authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by David Siegfried
Browse files

resurrect correct color, fixes #2426

Closes #2426

Merge request studip/studip!1637
parent 0115b09b
No related branches found
No related tags found
No related merge requests found
...@@ -225,7 +225,7 @@ class CalendarScheduleModel ...@@ -225,7 +225,7 @@ class CalendarScheduleModel
'title' => _("Dies ist eine vorgemerkte Veranstaltung") 'title' => _("Dies ist eine vorgemerkte Veranstaltung")
]; ];
} else { } else {
$entry['color'] = $details ? $details['color'] : ($member->gruppe % 9 + 1); $entry['color'] = !empty($details['color']) ? $details['color'] : ($member->gruppe % 9 + 1);
} }
$entry['visible'] = $details ? $details['visible'] : 1; $entry['visible'] = $details ? $details['visible'] : 1;
......
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