mirror of
https://github.com/grocy/grocy.git
synced 2026-04-12 15:26:17 +02:00
Exclude dateless tasks from calendar API
This commit is contained in:
parent
3d82c9abbd
commit
3766670fa6
|
|
@ -36,6 +36,8 @@ class CalendarService extends BaseService
|
|||
$titlePrefix = $this->getLocalizationService()->__t('Task due') . ': ';
|
||||
|
||||
foreach ($this->getTasksService()->GetCurrent() as $currentTaskEntry)
|
||||
{
|
||||
if (!empty($currentTaskEntry->due_date))
|
||||
{
|
||||
$taskEvents[] = [
|
||||
'title' => $titlePrefix . $currentTaskEntry->name,
|
||||
|
|
@ -45,6 +47,7 @@ class CalendarService extends BaseService
|
|||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$choreEvents = [];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user