-
Notifications
You must be signed in to change notification settings - Fork 684
Description
What happened?
Description
Fields (CKEditor and plain text) inside a contentBlock field inside a nested matrix field are lose their content when switching to a previous revision. The content cannot be recovered by switching to any other revision now. We observed this bug on the versions 5.8.20 and 5.8.21. However, we cannot reproduce it with any contentBlock fields or entries created on these versions.
Steps to reproduce
As mentioned in the description, using Craft 5.8.20 and 5.8.21 we could not reproduce this behavior manually with any contentBlock fields. We only have certain entries (existing prior to updating to those versions) in the system where it happens.
Where we observe it
The behavior can be observed before and after pruning all revisions or resaving all entries. Entries in a section of type structure containing a contentBlock field (containing two CKEditor fields) inside a nested matrix field. When adding a plain text field to that existing contentBlock field its content also vanishes.
What we tried to reproduce
Whether using a newly created contentBlock field or the one we already have, whether outside a matrix field, inside a matrix field or inside a nested matrix field, whether in the same entries or different entries (newly created or not), whether in a channel or a structure section, nothing leads to reproducing this behavior. It only happens in those already existing contentBlock fields in already existing entries.
Expected behavior
All fields have the content corresponding to that revision.
Actual behavior
Fields (CKEditor and plain text) inside a contentBlock field inside a nested matrix field are missing their content. The content cannot be recovered by switching to any other revision now.
Craft CMS version
5.8.20 and 5.8.21
PHP version
8.3
Operating system and version
No response
Database type and version
MySQL 8.0
Image driver and version
No response
Installed plugins and versions
- CKEditor 4.11.0
- CP Field Inspect 2.0.4
- Elements Panel 3.0.1
- Feed Me 6.11.0
- Formie 3.1.6
- Ray 2.1.1
- SEO 5.0.0
- Vite 5.0.1