fixed issue with disk test, now with correct fix for redirection after creation

This commit is contained in:
Mark Gregory
2026-06-25 12:04:01 +01:00
parent 9564676ed3
commit 85e8d96655
7 changed files with 56 additions and 18 deletions
+9 -4
View File
@@ -491,13 +491,18 @@ final class TicketShow extends Component
*/
public function firstResponderName(): string
{
$comment = Comment::query()
/** @var \Illuminate\Database\Eloquent\Builder<Comment> $query */
$query = Comment::query()
->where('ticket_id', $this->ticket->id)
->where('is_internal', false)
->whereNull('tombstoned_at')
->with('user')
->oldest('created_at')
->first();
->oldest('created_at');
if (Schema::hasColumn('helpdesk_comments', 'tombstoned_at')) {
$query->whereNull('tombstoned_at');
}
$comment = $query->first();
return $comment?->user?->name ?: 'Unknown responder';
}