-
Notifications
You must be signed in to change notification settings - Fork 115
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
CMS users lose all blocks when attempting to save page with validation errors #764
Comments
@brynwhyman I was torn between This doesn't surprise me, but it's obviously a bad bug. We had to work around the fact that SilverStripe replaces the whole form when saving with our new React editor. Redux should remember all of the form data, but it might be getting cleared on the response from the server, regardless of whether it was successful or not. I wonder if this can be relatively easily fixed by selectively clearing redux here: |
In my recent experience with version 4.4.0, the blocks themselves remain but the content within the block is cleared. |
It's worth mentioning that you will also experience the same thing if you apply validation requirements to an Element through the EG, I use the following
If I click "Save" in the inline editor, I get the following popup (but nothing in the inline editor): If I click "Save" on the page, my edits in the Element are lost, and this message is displayed in my Page edit form: This is likely related to this open ticket as well: As it seems that validation requirements that are specified in an Element's I think at the moment we have no way to reasonably provide validation requirements if we're using inline editing? Someone please, please correct me if I'm wrong. Loosely related: |
PRs merged. In the process of merging up between majors, then I'll tag. |
Tagged for CMS 4 (update In any case, this card can now be closed, as the work directly related to it is complete. |
This has now also been tagged for CMS 5 - update |
Overview
This may be more of a framework issue than an elemental issue, but haven't investigated enough to know.
When users attempt to save/publish a page, if the page has any validation errors then any content blocks which have been created get entirely removed as the page fails to save. This can be especially frustrating if there are required fields in other tabs which the user hasn't seen yet.
Steps to reproduce:
Actual result:
Expected result:
Acceptance Criteria
Out of scope
Notes
PRs
The text was updated successfully, but these errors were encountered: