Skip to content

Commit

Permalink
Create organisation - add phone number and email for contact person (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
alexPopaCode4 authored Sep 9, 2024
1 parent 01e91f0 commit 81daa9a
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,14 @@ protected function getActions(): array
->inlineLabel(),

])
->mutateFormDataUsing(function (array $data) {
$data['contact_person'] = [
'email' => $data['email'],
'phone' => $data['phone'],
];

return $data;
})
->successRedirectUrl(fn ($record) => OrganisationResource::getUrl('view', $record))
->disableCreateAnother(),
];
Expand Down

0 comments on commit 81daa9a

Please sign in to comment.