mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 20:26:42 +00:00
Fixed task edit page initial due date (fixes #1774)
This commit is contained in:
@@ -14,5 +14,6 @@
|
|||||||
- Fixed that the logout button/menu was missing when using external authentication (e.g. LDAP)
|
- 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 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 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`)
|
- 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`)
|
||||||
|
@@ -53,7 +53,7 @@
|
|||||||
|
|
||||||
@php
|
@php
|
||||||
$initialDueDate = null;
|
$initialDueDate = null;
|
||||||
if ($mode == 'edit')
|
if ($mode == 'edit' && !empty($task->due_date))
|
||||||
{
|
{
|
||||||
$initialDueDate = date('Y-m-d', strtotime($task->due_date));
|
$initialDueDate = date('Y-m-d', strtotime($task->due_date));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user