added notification for characteritics not found in panel box validation
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 12s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 13s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 19s
Laravel Pint / pint (pull_request) Successful in 9m27s
Laravel Larastan / larastan (pull_request) Failing after 10m55s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 12s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 13s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 19s
Laravel Pint / pint (pull_request) Successful in 9m27s
Laravel Larastan / larastan (pull_request) Failing after 10m55s
This commit is contained in:
@@ -74,14 +74,14 @@ class CreatePanelBoxValidation extends CreateRecord {
|
||||
// return $data;
|
||||
// }
|
||||
|
||||
if(($data['serial_exists']) == true){
|
||||
$this->halt();
|
||||
}
|
||||
if ($this->checkIfHasCharacteristics($data) && ($data['serial_exists']) == false) {
|
||||
$this->showChecklist = true;
|
||||
$this->halt();
|
||||
}
|
||||
if(($data['serial_exists']) == true){
|
||||
$this->halt();
|
||||
}
|
||||
else{
|
||||
if(!$this->checkIfHasCharacteristics($data) && ($data['serial_exists']) == false){
|
||||
\Filament\Notifications\Notification::make()
|
||||
->title('Characteristics not found for the scanned item.')
|
||||
->danger()
|
||||
|
||||
Reference in New Issue
Block a user