-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Properties not saving vaules #50
Comments
@ebess there is a solution to this? |
The detailview is not the proper place to edit some data on the product / products media imo. All custom properties are not saved by clicking the Beside that, do custom properties work as expected on the edit view? Will remove the edit custom properties icon from detail view. |
I still can't get the custom property fields to hydrate nor save when I use the form fields. |
Looking at the HandlesCustomPropertiesTrait the fillMediaCustomPropertiesFromRequest method doesn't interact with the media object. Adding the code below into the foreach loop got the media model to update appropriately.
|
In case someone else faces this issue, I've noticed that the current code is only compatible with Laravel >= 5.7. |
I've tried using the custom property field as the documentation presents but it won't save any values. If the property doesn't already exist it will create the key but it will only ever set it to
null
Images::make('Image') ->customPropertiesFields([ Boolean::make('Active'), Markdown::make('Description'), ])
In addition the custom property popup doesn't block the keyup detection on the detail page, meaning if I open the popup on the detail page and try to type into a field it navigate to the edit view when an
e
is pressed. Not sure if you'd want to remove the popup on the detail page altogether or override that keyup event.The text was updated successfully, but these errors were encountered: