mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 17:45:39 +00:00
Fixed that tasks without a due date were highlighted in red (fixes #1833)
This commit is contained in:
parent
9db66048d1
commit
f0db2a7709
@ -43,7 +43,7 @@
|
|||||||
|
|
||||||
### Tasks
|
### Tasks
|
||||||
|
|
||||||
- xxx
|
- Fixed that tasks without a due date were highlighted in red (like overdue tasks)
|
||||||
|
|
||||||
### Batteries
|
### Batteries
|
||||||
|
|
||||||
|
@ -20,7 +20,11 @@ class TasksController extends BaseController
|
|||||||
|
|
||||||
foreach ($tasks as $task)
|
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';
|
$task->due_type = 'overdue';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user