Added halt logic in create panel box validation
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 11s

This commit is contained in:
dhanabalan
2026-08-29 10:13:52 +05:30
parent b933849854
commit 6905981e55

View File

@@ -74,10 +74,13 @@ class CreatePanelBoxValidation extends CreateRecord {
// return $data;
// }
if ($this->checkIfHasCharacteristics($data)) {
if ($this->checkIfHasCharacteristics($data) && ($data['serial_exists']) == false) {
$this->showChecklist = true;
$this->halt();
}
if(($data['serial_exists']) == true){
$this->halt();
}
else{
\Filament\Notifications\Notification::make()
->title('Characteristics not found for the scanned item.')