-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
"Save and next" / "Save and prev" takes over UploadField-Content #27
Comments
hi @MLindenhofer that looks like a bug :-) as you can see, the code for this is rather simple silverstripe-cms-actions/src/ActionsGridFieldItemRequest.php Lines 642 to 662 in 93eaf9a
it's basically a redirect with the next id. This looks like something the framework should take care of. I'll have a look at this when I get some time and see if I can pinpoint the exact cause. |
After reviewing the issue, i think this is linked to this and more specifically this part where the state is hashed. as far as i can tell, the state is correct (empty files array) but the hash state is not updated properly (you also don't see any load event which is why i think this comes from the internal component state) |
@MLindenhofer this basic issue is that the id is the same and therefore is served the same files from the component. One temporary fix is to set a custom id for the field. For example, you create a subclass of UploadField with this
I don't think there is any side effect to this... |
I've opened a distinct issue here |
Hi,
I'm using CMS 4.11 and 1.3.8 of this module. I've problems with my UploadField in my DataObject-class here:
The upload itself works but, if I hit "Save and next" / "Save and prev" or hit the arrows to navigate to the next DataObject of the class, the Icon is taken over as well. Seems to be a bug in my opinion.
Thanks in advance
The text was updated successfully, but these errors were encountered: