changed logic in panel box validation #1549

Merged
jothi merged 1 commits from ranjith-dev into master 2026-11-28 05:40:19 +00:00

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');