diff --git a/be/app/Http/Resources/MasterTaskResource.php b/be/app/Http/Resources/MasterTaskResource.php index 593ca9f..ff7d31c 100644 --- a/be/app/Http/Resources/MasterTaskResource.php +++ b/be/app/Http/Resources/MasterTaskResource.php @@ -24,7 +24,7 @@ class MasterTaskResource extends JsonResource 'is_finished' => $this->is_finished, 'starts_at' => $this->created_at, 'deadline' => $this->deadline, - 'project_code' => ($this->project) ? $this->project->code : null, + 'project_code' => ($this->project) ? $this->project->code . ' ' . $this->project->name : null, 'team' => ($this->team) ?: null, 'employees' => UserResource::collection($this->usersOutsideTeam), 'subtasks' => SubTaskResource::collection($this->subtasks), diff --git a/be/app/Http/Resources/SubTaskResource.php b/be/app/Http/Resources/SubTaskResource.php index 7b6bd9a..aac6d2c 100644 --- a/be/app/Http/Resources/SubTaskResource.php +++ b/be/app/Http/Resources/SubTaskResource.php @@ -19,7 +19,7 @@ class SubTaskResource extends JsonResource 'created_by' => $this->created_by, 'master_task_description' => $this->mastertask->description, 'description' => $this->description, - 'project_code' => ($this->mastertask->project) ? $this->mastertask->project->code : null, + 'project_code' => ($this->mastertask->project) ? $this->mastertask->project->code . ' ' . $this->mastertask->project->name : null, 'master_task_id' => $this->mastertask->id, 'master_task' => $this->mastertask->title, 'title' => $this->title,