diff --git a/app/Filament/Resources/ProfitCenterSupplierSchedules/Pages/CreateProfitCenterSupplierSchedule.php b/app/Filament/Resources/ProfitCenterSupplierSchedules/Pages/CreateProfitCenterSupplierSchedule.php index 82709d0..76ca2d9 100644 --- a/app/Filament/Resources/ProfitCenterSupplierSchedules/Pages/CreateProfitCenterSupplierSchedule.php +++ b/app/Filament/Resources/ProfitCenterSupplierSchedules/Pages/CreateProfitCenterSupplierSchedule.php @@ -32,4 +32,15 @@ protected function handleRecordCreation(array $data): Model return $lastRecord; } + + /** + * "Mentés és új létrehozása" esetén a Beszállító mezőt megtartja, a többit üríti (EV3-432). + * + * @param array $data + * @return array + */ + protected function preserveFormDataWhenCreatingAnother(array $data): array + { + return ['supplier_id' => $data['supplier_id'] ?? null]; + } }