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
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 11s
This commit is contained in:
@@ -74,10 +74,13 @@ class CreatePanelBoxValidation extends CreateRecord {
|
|||||||
// return $data;
|
// return $data;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
if ($this->checkIfHasCharacteristics($data)) {
|
if ($this->checkIfHasCharacteristics($data) && ($data['serial_exists']) == false) {
|
||||||
$this->showChecklist = true;
|
$this->showChecklist = true;
|
||||||
$this->halt();
|
$this->halt();
|
||||||
}
|
}
|
||||||
|
if(($data['serial_exists']) == true){
|
||||||
|
$this->halt();
|
||||||
|
}
|
||||||
else{
|
else{
|
||||||
\Filament\Notifications\Notification::make()
|
\Filament\Notifications\Notification::make()
|
||||||
->title('Characteristics not found for the scanned item.')
|
->title('Characteristics not found for the scanned item.')
|
||||||
|
|||||||
Reference in New Issue
Block a user