What happened?
Description
Related to #16002.
I've got a site heavily relying on a few Matrix-based page builder fields (both in Cards and Inline-Editable block views). When I have an Entry with some blocks in the page builder field, and I create a Draft out of the entry, I would expect that any edits I make to any of the blocks in the various Matrix fields would be considered "Draft" edits, and wouldn't affect the live/current state of things until the "parent" entry's Draft is applied.
In practice, however, what happens is that as soon as I save a block's edits, the live/current version of the page renders with those "draft" changes.
Steps to reproduce
- Create a Matrix field with some bloc-err, entry types assigned, in Cards view.
- Create a Section that makes use of the Matrix field, and the templates needed to view that content.
- Create a "parent" entry in that section, and give it some content in the Matrix field.
- Create a Draft version of that entry.
- Double-click one of the cards in the Matrix field
- Make some edits and click "Save".
- In the "parent" entry, switch away from the Draft created in step 4, to the Current state of the entry.
- View the current/live rendered parent entry; the block should show those draft edits.
Expected behavior
What happens in Draft, stays in Draft. 🤫
Actual behavior
What happens in Draft, is made known to all. 🫢
Craft CMS version
5.6.14
PHP version
8.2.24
Operating system and version
Linux 5.15.167.4-microsoft-standard-WSL2
Database type and version
MySQL 8.0.36
Image driver and version
Imagick 3.7.0 (ImageMagick 6.9.11-60)
Installed plugins and versions
- Button Box 5.0.0
- CKEditor 4.6.0
- Cloner 3.0.1
- Cloudflare 3.0.2
- Cloudflare R2 1.1.1
- Element API 4.2.0
- Feed Me 6.8.0
- Field Manager 4.0.3
- Freeform 5.10.5
- Hyper 2.2.4
- Icon Picker 3.0.3
- LJ Range Slider 5.0.0
- Maps 5.0.4
- Matrix Extended v4.2.1
- Minify 5.0.0
- Navigation 3.0.6
- oEmbed 3.1.3
- Postmark 3.1.0
- SEOmatic 5.1.11
- Site Copy X 2.1.1
- Super Dynamic Fields 5.0.1
- Vite 5.0.1
What happened?
Description
Related to #16002.
I've got a site heavily relying on a few Matrix-based page builder fields (both in Cards and Inline-Editable block views). When I have an Entry with some blocks in the page builder field, and I create a Draft out of the entry, I would expect that any edits I make to any of the blocks in the various Matrix fields would be considered "Draft" edits, and wouldn't affect the live/current state of things until the "parent" entry's Draft is applied.
In practice, however, what happens is that as soon as I save a block's edits, the live/current version of the page renders with those "draft" changes.
Steps to reproduce
Expected behavior
What happens in Draft, stays in Draft. 🤫
Actual behavior
What happens in Draft, is made known to all. 🫢
Craft CMS version
5.6.14
PHP version
8.2.24
Operating system and version
Linux 5.15.167.4-microsoft-standard-WSL2
Database type and version
MySQL 8.0.36
Image driver and version
Imagick 3.7.0 (ImageMagick 6.9.11-60)
Installed plugins and versions