Skip to content
Snippets Groups Projects
Commit 212f042e authored by David Siegfried's avatar David Siegfried
Browse files

fix ical-import, closes #680

Closes #680

Merge request studip/studip!1268
parent 3e477a52
No related branches found
No related tags found
No related merge requests found
...@@ -102,11 +102,11 @@ class CalendarParser ...@@ -102,11 +102,11 @@ class CalendarParser
$calendar_event->setAccessibility($component['CLASS']); $calendar_event->setAccessibility($component['CLASS']);
$calendar_event->setUserDefinedCategories($component['CATEGORIES']); $calendar_event->setUserDefinedCategories($component['CATEGORIES']);
$calendar_event->event->category_intern = $component['STUDIP_CATEGORY'] ?: 1; $calendar_event->event->category_intern = $component['STUDIP_CATEGORY'] ?: 1;
$calendar_event->setPriority($component['PRIORITY']); $calendar_event->setPriority($component['PRIORITY'] ?? 0);
$calendar_event->event->location = $component['LOCATION']; $calendar_event->event->location = $component['LOCATION'];
$calendar_event->setExceptions($component['EXDATE']); $calendar_event->setExceptions($component['EXDATE']);
$calendar_event->event->mkdate = $component['CREATED']; $calendar_event->event->mkdate = $component['CREATED'] ?? time();
$calendar_event->event->chdate = $component['LAST-MODIFIED'] ?: $component['CREATED']; $calendar_event->event->chdate = $component['LAST-MODIFIED'] ?: $component['CREATED'] ?? time();
$calendar_event->event->importdate = $this->time; $calendar_event->event->importdate = $this->time;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment