1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Working on task kanban

This commit is contained in:
Hillel Coren 2017-12-19 22:05:35 +02:00
parent b8b319c671
commit e170cb2a78

View File

@ -148,9 +148,12 @@ class TaskController extends BaseController
public function edit(TaskRequest $request)
{
$this->checkTimezone();
$task = $request->entity();
if (! $task) {
return redirect('/');
}
$actions = [];
if ($task->invoice) {
$actions[] = ['url' => URL::to("invoices/{$task->invoice->public_id}/edit"), 'label' => trans('texts.view_invoice')];