Added logic in edit page for alert mail
This commit is contained in:
@@ -10,6 +10,15 @@ class EditAlertMailRule extends EditRecord
|
|||||||
{
|
{
|
||||||
protected static string $resource = AlertMailRuleResource::class;
|
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
|
protected function getHeaderActions(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
|
|||||||
Reference in New Issue
Block a user