diff --git a/app/Filament/Resources/AlertMailRuleResource/Pages/EditAlertMailRule.php b/app/Filament/Resources/AlertMailRuleResource/Pages/EditAlertMailRule.php index 4f9d889..b7b6b30 100644 --- a/app/Filament/Resources/AlertMailRuleResource/Pages/EditAlertMailRule.php +++ b/app/Filament/Resources/AlertMailRuleResource/Pages/EditAlertMailRule.php @@ -10,6 +10,15 @@ class EditAlertMailRule extends EditRecord { protected static string $resource = AlertMailRuleResource::class; + protected function mutateFormDataBeforeSave(array $data): array + { + //dd('test'); + if ($data['is_active']) { + $data['plant'] = 'All Plants'; + } + return $data; + } + protected function getHeaderActions(): array { return [