diff --git a/app/Http/Controllers/TaskKanbanController.php b/app/Http/Controllers/TaskKanbanController.php index 4d05fa17c89a..0de8d0e98bef 100644 --- a/app/Http/Controllers/TaskKanbanController.php +++ b/app/Http/Controllers/TaskKanbanController.php @@ -79,13 +79,16 @@ class TaskKanbanController extends BaseController } $data = [ + 'showBreadcrumbs' => false, 'title' => trans('texts.kanban'), 'statuses' => $statuses, 'tasks' => $tasks, 'clients' => $clients, 'projects' => $projects, 'clientPublicId' => $clientPublicId, + 'client' => $clientPublicId ? Client::scope($clientPublicId)->first() : null, 'projectPublicId' => $projectPublicId, + 'project' => $projectPublicId ? Project::scope($projectPublicId)->first() : null, ]; return view('tasks.kanban', $data); diff --git a/app/Models/Project.php b/app/Models/Project.php index 7b9fac89578e..7b694a42b419 100644 --- a/app/Models/Project.php +++ b/app/Models/Project.php @@ -81,6 +81,11 @@ class Project extends EntityModel $query->whereBetween('due_date', [$startDate, $endDate]); }); } + + public function getDisplayName() + { + return $this->name; + } } Project::creating(function ($project) { diff --git a/resources/views/projects/show.blade.php b/resources/views/projects/show.blade.php index 52b7755544bd..2cf877879165 100644 --- a/resources/views/projects/show.blade.php +++ b/resources/views/projects/show.blade.php @@ -59,7 +59,9 @@