Fixed task edit page initial due date (fixes #1774)

This commit is contained in:
Bernd Bestel
2022-02-06 17:49:04 +01:00
parent 7e6efb4a14
commit da54b945da
2 changed files with 3 additions and 2 deletions

View File

@@ -14,5 +14,6 @@
- Fixed that the logout button/menu was missing when using external authentication (e.g. LDAP)
- Fixed that the consume page/dialog wasn't properly initialized when opening it from the stock entries page
- Fixed that entries for not existing users were missing on the stock journal
- Fixed that when having a Task without a due date, the iCal export was broken
- Fixed that when having a task without a due date, the iCal export was broken
- Fixed that when editing a task without a due date, `1970-01-01` was shown
- The API endpoint `/stock/shoppinglist/clear` has now a new optional request body parameter `done_only` (to only remove done items from the given shopping list, defaults to `false`)

View File

@@ -53,7 +53,7 @@
@php
$initialDueDate = null;
if ($mode == 'edit')
if ($mode == 'edit' && !empty($task->due_date))
{
$initialDueDate = date('Y-m-d', strtotime($task->due_date));
}