You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After following the configuration to enable custom fields, if I go in the edit profile page I get a json_decode(): Argument #1 ($json) must be of type string, array given error.
this happens when in the user model custom_fields is (correctly) casted as array. If I remove the cast as array the edit profile page works.
How to reproduce the bug
Just enable the cast as array of custom_fields in the user model
Package Version
1.0.31
PHP Version
8.2
Laravel Version
11.x
Which operating systems does with happen with?
macOS
Notes
No response
The text was updated successfully, but these errors were encountered:
The error trace back to $this->form->fill(json_decode($data['custom_fields'], true) ?? []); in vendor/joaopaulolndev/filament-edit-profile/src/Livewire/CustomFieldsForm.php
What happened?
After following the configuration to enable custom fields, if I go in the edit profile page I get a json_decode(): Argument #1 ($json) must be of type string, array given error.
this happens when in the user model custom_fields is (correctly) casted as array. If I remove the cast as array the edit profile page works.
How to reproduce the bug
Just enable the cast as array of custom_fields in the user model
Package Version
1.0.31
PHP Version
8.2
Laravel Version
11.x
Which operating systems does with happen with?
macOS
Notes
No response
The text was updated successfully, but these errors were encountered: