We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 144cd0f commit 7865047Copy full SHA for 7865047
1 file changed
app/Models/Ticket.php
@@ -64,7 +64,7 @@ public function comments(): HasMany
64
public function ticketNumber(): Attribute
65
{
66
return new Attribute(
67
- get: fn() => $this->project->ticket_prefix . '' . $this->number
+ get: fn() => $this->project?->ticket_prefix . '' . $this->number
68
);
69
}
70
0 commit comments