mirror of
https://github.com/grocy/grocy.git
synced 2025-08-15 10:14:39 +00:00
Fixed that tasks without a due date were highlighted in red (fixes #1833)
This commit is contained in:
@@ -20,7 +20,11 @@ class TasksController extends BaseController
|
||||
|
||||
foreach ($tasks as $task)
|
||||
{
|
||||
if ($task->due_date < date('Y-m-d 23:59:59', strtotime('-1 days')))
|
||||
if (empty($task->due_date))
|
||||
{
|
||||
$task->due_type = '';
|
||||
}
|
||||
elseif ($task->due_date < date('Y-m-d 23:59:59', strtotime('-1 days')))
|
||||
{
|
||||
$task->due_type = 'overdue';
|
||||
}
|
||||
|
Reference in New Issue
Block a user