cms
cms copied to clipboard
when element is a revision, query the content block element revisions too
Description
If you have a Content Block field that’s inside of a Matrix field in the inline-editable blocks view mode and there are at least two “blocks” in that Matrix field, the Content Block elements are not retrieved correctly.
Steps to reproduce:
- clean 5.8.21 install with one site
- create a content block field
myContentBlockwith a plain text field in itplainText - create a matrix field
myMatrixwith entry typewithContentBlock, addmyContentBlockfield to it; view mode: inline-editable blocks; revisions: can be on or off - same results in both cases - create a section
mySectionwith entry typemyEntryType, addmyMatrixfield to it (all default settings) - create an entry in
mySection, fill out the title, add two blocks tomyMatrix, fill out theplainTextfield and fully save - edit the first block, change the
plainTextfield value and fully save - view the first revision from the top - the
plainTextfield in both blocks shows as empty
Fix: when the element is a revision, query for content block revisions.
Related issues
#18149