Skip to content

Commit

Permalink
feat(project): project info in tiket
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftin committed Dec 12, 2024
1 parent c57eb89 commit f919e9f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/models/Ticket.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public static function getProps() {
'content',
'language',
'department',
'project',
'file',
'date',
'unread',
Expand Down Expand Up @@ -132,6 +133,10 @@ public function toArray($minimized = false) {
'id' => $this->department->id,
'name' => $this->department->name
],
'project' => $this->project ? [
'id' => $this->project->id,
'name' => $this->project->name
] : null,
'date' => $this->date,
'file' => $this->file,
'language' => $this->language,
Expand Down

0 comments on commit f919e9f

Please sign in to comment.