Skip to content

Commit

Permalink
Merge pull request #460 from felixhahnweilheim/enh-canceled-vcalendar
Browse files Browse the repository at this point in the history
Enh canceled vcalendar
  • Loading branch information
luke- authored Feb 20, 2024
2 parents ace8497 + b724de3 commit 99b1975
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Changelog
- Fix #447: Global calendar header redesign
- Enh #440: Extend list of fields for updating of sequence
- Fix #453: Profile Calendar not available when adding an event from the global Calendar when the module is enabled in the profile
- Enh #457: Strikethrough cancelled events in calendar view
- Enh #460: Add cancelled status in ICS files

1.5.8 (January 19, 2024)
------------------------
Expand Down
4 changes: 4 additions & 0 deletions interfaces/VCalendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ private function addVEvent(CalendarEventIF $item, bool $isRecurrenceChild = fals
'DTEND' => $dtEnd,
'SUMMARY' => $item->getTitle(),
];

if (isset($item->closed) && $item->closed) {
$result['STATUS'] = 'CANCELLED';
}

if (!empty($item->getLocation())) {
$result['LOCATION'] = $item->getLocation();
Expand Down

0 comments on commit 99b1975

Please sign in to comment.