Skip to content

Commit

Permalink
[AIDAPP-276]: When editing a Service Request through the Contact prof…
Browse files Browse the repository at this point in the history
…ile Type and Priority are not set in the form (#269)

* [AIDAPP-276]: When editing a Service Request through the Contact profile Type and Priority are not set in the form

* code format
  • Loading branch information
kandarp-canyon authored Oct 7, 2024
1 parent 37b4482 commit 6bcf62d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,12 @@ public function table(Table $table): Table
])
->actions([
ViewAction::make(),
EditAction::make(),
EditAction::make()
->mutateRecordDataUsing(function (array $data, $record) {
$data['type_id'] = $record?->priority?->type_id;

return $data;
}),
])
->bulkActions([
])
Expand Down

0 comments on commit 6bcf62d

Please sign in to comment.