-
Notifications
You must be signed in to change notification settings - Fork 37
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
Check if field is shown on update #77
Conversation
Im not sure if this is the right place to add this check... if I understood correct whenever you try to update it is trying to fill fields that shouldn't be there because of |
@milewski I did some more digging and it turns out that inside the method you mentioned, filtering is done inside this if:
But it doesn't go there, since the controller is an instance of Edit: If I change above to the following, it works:
|
Yes I think this should be the proper way, that function should only return fields that should be updated/seen etc.. on the current request |
I have removed my earlier change and incorporated the new one! |
@milewski this pr is causing an issue with uploading images. When using advanced media library, the field is being destroyed making the image unreadable when uploading. Nasty bug to track down... Set this package to 1.4.2 and bug solved. |
@milewski I think (not sure though) that the field from Advanced Media Library should be added to the list of Edit: "Not sure" because I haven't had time to test yet. |
Hi!
I was working with this package and I was using a custom field inside a ConditionalContainer. During resource creation everything worked as expected, but during resource update I was getting errors. Turned out that that custom field was added to the update query, even though it's defined with
->exceptOnForms()
.This PR adds a check to see if a field is shown on update, and will not add it if not.
Hope it's helpful!