Added logic for characteristics not found halting record #798
@@ -65,8 +65,15 @@ class CreatePanelBoxValidation extends CreateRecord {
|
|||||||
$this->showChecklist = true;
|
$this->showChecklist = true;
|
||||||
$this->halt();
|
$this->halt();
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
\Filament\Notifications\Notification::make()
|
||||||
|
->title('Characteristics not found for the scanned item.')
|
||||||
|
->danger()
|
||||||
|
->send();
|
||||||
|
$this->halt();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return $data;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function checkIfHasCharacteristics(array $data)
|
protected function checkIfHasCharacteristics(array $data)
|
||||||
|
|||||||
Reference in New Issue
Block a user