Closed PiessensLander closed 2 years ago
Thanks for reporting that! Turns out it wasn’t just relational fields, but any changes made to existing blocks. Fixed now for the next release.
To get the fix early, change your craftcms/cms
requirement in composer.json to "dev-develop as 4.0.4"
and run composer update
.
Craft 4.0.5 is out now with that fix.
What happened?
Description
I'm experiencing some unexpected behavior when using an entry field within a matrix that's used in a category. When I want to reorganize or replace some or all entries in the matrix field, it always changes back to the initial state. For example, when replacing selected entries in the matrix field, they change back to the original entries after saving the category. This behavior also occurs when reorganizing the order of the selected entries. I did however notice that the same matrix field works perfectly fine in an entry, as well as in a draft of a category. This issue is also reflected on the frontend. It's not just a visual bug.
Steps to reproduce
Expected behavior
The matrix field updates the ordering of the selected entries
Actual behavior
The matrix field goes back to the initial state
Craft CMS version
4.0.4
PHP version
8.1.5
Operating system and version
MacOS 12.4
Database type and version
MySQL 5.7.34
Image driver and version
GD 8.1.5
Installed plugins and versions