mirror of
https://github.com/grocy/grocy.git
synced 2026-04-09 05:56:15 +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') . ': ';
|
$titlePrefix = $this->getLocalizationService()->__t('Task due') . ': ';
|
||||||
|
|
||||||
foreach ($this->getTasksService()->GetCurrent() as $currentTaskEntry)
|
foreach ($this->getTasksService()->GetCurrent() as $currentTaskEntry)
|
||||||
|
{
|
||||||
|
if (!empty($currentTaskEntry->due_date))
|
||||||
{
|
{
|
||||||
$taskEvents[] = [
|
$taskEvents[] = [
|
||||||
'title' => $titlePrefix . $currentTaskEntry->name,
|
'title' => $titlePrefix . $currentTaskEntry->name,
|
||||||
|
|
@ -45,6 +47,7 @@ class CalendarService extends BaseService
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$choreEvents = [];
|
$choreEvents = [];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user