mirror of
https://github.com/grocy/grocy.git
synced 2025-08-18 11:27:03 +00:00
Display "Track date only"-chores as all-day events on the calendar (fixes #941)
This commit is contained in:
@@ -44,6 +44,7 @@
|
|||||||
### Calendar improvements/fixes
|
### Calendar improvements/fixes
|
||||||
- Events are now links to the corresponding page (thanks @zsarnett)
|
- 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 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
|
### API improvements/fixes
|
||||||
- Breaking changes:
|
- Breaking changes:
|
||||||
|
@@ -74,7 +74,8 @@ class CalendarService extends BaseService
|
|||||||
'title' => $titlePrefix . $chore->name . $assignedToText,
|
'title' => $titlePrefix . $chore->name . $assignedToText,
|
||||||
'start' => $currentChoreEntry->next_estimated_execution_time,
|
'start' => $currentChoreEntry->next_estimated_execution_time,
|
||||||
'date_format' => 'datetime',
|
'date_format' => 'datetime',
|
||||||
'link' => $this->UrlManager->ConstructUrl('/choresoverview')
|
'link' => $this->UrlManager->ConstructUrl('/choresoverview'),
|
||||||
|
'allDay' => $chore->track_date_only == 1
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user