changed logic in panel box validation
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 15s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 18s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 17s
Laravel Pint / pint (pull_request) Successful in 3m38s
Laravel Larastan / larastan (pull_request) Failing after 5m46s

This commit is contained in:
dhanabalan
2026-11-28 11:09:58 +05:30
parent c6ec8a3ac0
commit 4ecfec49d6

View File

@@ -450,17 +450,7 @@ public $records = [];
}
}
if (! $prod) {
Notification::make()
->title('Failed to Save Production Characteristics')
->body('One or more characteristic records were not inserted.')
->danger()
->send();
return;
}
// if ($insertedCount != count($this->records)) {
// if (! $prod) {
// Notification::make()
// ->title('Failed to Save Production Characteristics')
// ->body('One or more characteristic records were not inserted.')
@@ -470,6 +460,16 @@ public $records = [];
// return;
// }
if ($insertedCount != count($this->records)) {
Notification::make()
->title('Failed to Save Production Characteristics')
->body('One or more characteristic records were not inserted.')
->danger()
->send();
return;
}
$this->showChecklist = false;
$this->dispatch('checklist-saved');