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
When the autosaveDrafts setting is disabled, when saving an entry that had previously failed to save due to validation errors, some of the non-field data for Matrix/Neo blocks is omitted from the POST data. This causes things like disabled state to be lost, and Neo block levels being lost leading to loss of Neo block structure (related issue: spicywebau/craft-neo#907).
Steps to reproduce
Set autosaveDrafts to false in CMS config
Create a new entry with a Matrix field set to display as blocks
Add a Matrix entry and set it as disabled
Don't put in a required field
Save the owner entry. Craft will give a validation error
Fix that validation error and save it again
After saving the owner entry, the Matrix entry is enabled
Expected behavior
Matrix entry stays disabled after saving owner entry
Actual behavior
Matrix entry is enabled after saving owner entry
Craft CMS version
5.2.8
PHP version
8.2.20
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
Neo 5.1.0
The text was updated successfully, but these errors were encountered:
Culprit was that this code no longer really applies to newly-added nested Matrix entries, since we now create actual new entries immediately when you press “New [entry type]” over Ajax:
So delta names were getting registered for every nested entry’s input namespace (which covers …[enabled]), even for entries that had just been created.
What happened?
Description
When the autosaveDrafts setting is disabled, when saving an entry that had previously failed to save due to validation errors, some of the non-field data for Matrix/Neo blocks is omitted from the POST data. This causes things like disabled state to be lost, and Neo block levels being lost leading to loss of Neo block structure (related issue: spicywebau/craft-neo#907).
Steps to reproduce
Expected behavior
Matrix entry stays disabled after saving owner entry
Actual behavior
Matrix entry is enabled after saving owner entry
Craft CMS version
5.2.8
PHP version
8.2.20
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: