Skip to content

Commit 7865047

Browse files
committed
Bug fix: ticket creation
1 parent 144cd0f commit 7865047

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/Models/Ticket.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function comments(): HasMany
6464
public function ticketNumber(): Attribute
6565
{
6666
return new Attribute(
67-
get: fn() => $this->project->ticket_prefix . '' . $this->number
67+
get: fn() => $this->project?->ticket_prefix . '' . $this->number
6868
);
6969
}
7070
}

0 commit comments

Comments
 (0)