Display "Track date only"-chores as all-day events on the calendar (fixes #941)

This commit is contained in:
Bernd Bestel 2020-08-24 18:27:40 +02:00
parent c8c540970d
commit 95ca6f6354
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300
2 changed files with 3 additions and 1 deletions

View File

@ -44,6 +44,7 @@
### Calendar improvements/fixes
- Events are now links to the corresponding page (thanks @zsarnett)
- Fixed a PHP warning when using the "Share/Integrate calendar (iCal)" button (thanks @tsia)
- Fixed that "Track date only"-chores were always displayed at 12am (are now displayed as all-day events)
### API improvements/fixes
- Breaking changes:

View File

@ -74,7 +74,8 @@ class CalendarService extends BaseService
'title' => $titlePrefix . $chore->name . $assignedToText,
'start' => $currentChoreEntry->next_estimated_execution_time,
'date_format' => 'datetime',
'link' => $this->UrlManager->ConstructUrl('/choresoverview')
'link' => $this->UrlManager->ConstructUrl('/choresoverview'),
'allDay' => $chore->track_date_only == 1
);
}
}