Commit 11b7767c authored by Mahmoud Aglan's avatar Mahmoud Aglan

Fix GlobalSearch crash when ParticipantStatus enum is cast to string

ParticipantStatus is a backed enum — concatenating it directly throws.
Use ->value to get the string value.
Co-Authored-By: 's avatarClaude Sonnet 4.6 <noreply@anthropic.com>
parent bc0c0106
......@@ -51,7 +51,7 @@ public function search(): void
$results[] = [
'type' => 'participant',
'label' => $p->person?->name_ar ?? $p->person?->name ?? $p->participant_number,
'subtitle' => $p->participant_number . ' — ' . ($p->status ?? ''),
'subtitle' => $p->participant_number . ' — ' . ($p->status?->value ?? ''),
'url' => route('participants.show', $p),
];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment