Skip to content

[5.x]: Cannot reorder Matrix field blocks #15505

@rgauthier4c4

Description

@rgauthier4c4

What happened?

Description

I have a matrix field used as a page builder with about 12 differents entrytypes. We have create one block of each to test them. Now we want to move them around and change the order. When moved, the autosaved is trigger with the confirmation of the new position saved. But when we reload the page, the order is back

Steps to reproduce

  1. Create a matrix field with multiple entrytypes
  2. Create differents entries in your matrix field
  3. Move one entry around and wait for the new position saved message
  4. Save the page
  5. The order is different from what was saved

Expected behavior

The order is the same before and after the save.

Actual behavior

The order is changed and doesn't respect the order that i've set

Image 1 : The current list of blocks
Image 2 : One item has his position moved (block image cards before tabs)
Image 3 : After the save, the item is shifted 2 places up ( block image card is now over block medias)

1 2 3

Craft CMS version

5.3.1

PHP version

8.2.15

Operating system and version

No response

Database type and version

mysql 8.0

Image driver and version

No response

Installed plugins and versions

craftcms/aws-s3 2.2.1
craftcms/ckeditor 4.1.0
nystudio107/craft-code-field 5.0.0
mmikkel/cp-field-inspect 2.0.2
spicyweb/craft-embedded-assets 5.1.1
verbb/hyper 2.0.3
verbb/image-resizer 4.0.0
nystudio107/craft-retour 5.0.2
putyourlightson/craft-sendgrid 3.0.0
nystudio107/craft-seomatic 5.1.1
studioespresso/craft-splashingimages 5.0.3
putyourlightson/craft-sprig 3.3.0
nystudio107/craft-twigpack 5.0.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions