Skip to content

Commit

Permalink
Fix bug to save custom fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Joao Nascimento committed May 25, 2024
1 parent a150d1a commit d837069
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Pages/EditProfilePage.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,9 @@ public function updateCustomFields(): void
try {
$data = $this->customFieldsForm->getState();
$data['custom_fields'] = $data ?? [];
$this->handleRecordUpdate($this->getUser(), $data);

$customFields['custom_fields'] = $data['custom_fields'];
$this->handleRecordUpdate($this->getUser(), $customFields);
} catch (Halt $exception) {
return;
}
Expand Down

0 comments on commit d837069

Please sign in to comment.