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
There is a scenario where the save action is not accurately reflecting that state of the CMS elemental form after a validation error - showing that it is 'Saved' when the content is still 'dirty'/ not saved to the database.
ACs
The Save/Publish actions on a CMS page with unsaved changes in an ElementalArea remain in a dirty state when a save operation returns a validation warning on the page
Any block that was edited retains a 'modified' icon indicator when a save operation returns a validation warning on the page
A CMS page with an ElementalArea comes back in a clean state when a save operation returns no validation warnings on the page (successfully saves)
Note: "... validation warning on the page" could include:
Within the primary nav tabs (Content, Settings, History, etc)
Within a child tab (Content > 'Custom tab')
Within a contained gridfield detail view
Reproduction steps
Have a page with a required field (e.g. within a content block)
Enter content in a content block WYSIWYG, do not enter content in the required field
Attempt to save the form
Expected result: the page does not save due to validation errors, the save action remains in a 'dirty' state as "Save"
Actual result (bug): the page does not save due to validation errors, the save action changes to a "Saved" state while the content has not been saved
Refresh the page to confirm that the content block WYSIWYG content did not save
Overview
This has been split from silverstripe/silverstripe-admin#1110 which focused on fixing the bug for CMS Pages.
There is a scenario where the save action is not accurately reflecting that state of the CMS elemental form after a validation error - showing that it is 'Saved' when the content is still 'dirty'/ not saved to the database.
ACs
Note: "... validation warning on the page" could include:
Reproduction steps
Expected result: the page does not save due to validation errors, the save action remains in a 'dirty' state as "Save"
Actual result (bug): the page does not save due to validation errors, the save action changes to a "Saved" state while the content has not been saved
Version
CMS 4.6.1
Elemental 4.4.1
Notes
The text was updated successfully, but these errors were encountered: