mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixed task bug
This commit is contained in:
parent
4d71b193d6
commit
5bf287f51a
@ -137,7 +137,7 @@ class TaskController extends BaseController
|
|||||||
'url' => 'tasks',
|
'url' => 'tasks',
|
||||||
'title' => trans('texts.new_task'),
|
'title' => trans('texts.new_task'),
|
||||||
'timezone' => Auth::user()->account->timezone->name,
|
'timezone' => Auth::user()->account->timezone->name,
|
||||||
'datetimeFormat' => Auth::user()->account->datetime_format->format_moment
|
'datetimeFormat' => Auth::user()->account->datetime_format ? Auth::user()->account->datetime_format->format_moment : 'DD/MMM/YYYY h:mm:ss a'
|
||||||
];
|
];
|
||||||
|
|
||||||
$data = array_merge($data, self::getViewModel());
|
$data = array_merge($data, self::getViewModel());
|
||||||
@ -188,7 +188,7 @@ class TaskController extends BaseController
|
|||||||
'duration' => $task->is_running ? $task->getCurrentDuration() : $task->getDuration(),
|
'duration' => $task->is_running ? $task->getCurrentDuration() : $task->getDuration(),
|
||||||
'actions' => $actions,
|
'actions' => $actions,
|
||||||
'timezone' => Auth::user()->account->timezone->name,
|
'timezone' => Auth::user()->account->timezone->name,
|
||||||
'datetimeFormat' => Auth::user()->account->datetime_format->format_moment
|
'datetimeFormat' => Auth::user()->account->datetime_format ? Auth::user()->account->datetime_format->format_moment : 'DD/MMM/YYYY h:mm:ss a'
|
||||||
];
|
];
|
||||||
|
|
||||||
$data = array_merge($data, self::getViewModel());
|
$data = array_merge($data, self::getViewModel());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user