fixed spell checker issue and alos git commit at ticket level

This commit is contained in:
Mark Gregory
2026-06-25 16:08:55 +01:00
parent 38feedd0aa
commit ecff30a0af
6 changed files with 49 additions and 42 deletions
+6 -3
View File
@@ -401,9 +401,12 @@ final class TicketShow extends Component
}
})
->when($ticket->company_id !== null, static function ($query) use ($ticket): void {
$query->whereHas('repository', static function ($repositoryQuery) use ($ticket): void {
$repositoryQuery->whereNull('company_id')
->orWhere('company_id', $ticket->company_id);
$query->where(static function ($scopeQuery) use ($ticket): void {
$scopeQuery->where('ticket_id', $ticket->id)
->orWhereHas('repository', static function ($repositoryQuery) use ($ticket): void {
$repositoryQuery->whereNull('company_id')
->orWhere('company_id', $ticket->company_id);
});
});
})
->latest('committed_at')