Skip to content
Snippets Groups Projects
Commit b3f9cb4b authored by André Noack's avatar André Noack Committed by Jan-Hendrik Willms
Browse files

Resolve #3837 "ICAL Export fehlt das UID Attribut"

Closes #3837

Merge request studip/studip!2704
parent 5fc761e7
No related branches found
No related tags found
No related merge requests found
......@@ -149,7 +149,8 @@ class ICalendarExport
'count' => $date->number_of_dates,
'expire' => $date->repetition_end,
'month' => $date->month
]
],
'UID' => $date->unique_id
];
}
......@@ -159,17 +160,24 @@ class ICalendarExport
*/
public function prepareCourseDate($date): array
{
$summary = $date->course->getFullName();
$categories = $date->getTypeName();
if ($date instanceof CourseExDate) {
$summary .= ' ' . _('(fällt aus)');
$categories = '';
}
return [
'SUMMARY' => $date->course->getFullName(),
'SUMMARY' => $summary,
'DESCRIPTION' => '',
'LOCATION' => $date->getRoomName(),
'CATEGORIES' => $GLOBALS['TERMIN_TYP'][$date->date_typ]['name'],
'CATEGORIES' => $categories,
'LAST-MODIFIED' => $date->chdate,
'CREATED' => $date->mkdate,
'DTSTAMP' => $this->time,
'DTSTART' => $date->date,
'DTEND' => $date->end_time,
'PRIORITY' => ''
'PRIORITY' => '',
'UID' => 'Stud.IP-SEM-' . $date->id . '@' . ($_SERVER['SERVER_NAME'] ?? '')
];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment