Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
rgauthier4c4 opened this issue Aug 8, 2024 · 2 comments
Closed

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

rgauthier4c4 opened this issue Aug 8, 2024 · 2 comments
Assignees
Labels

Comments

@rgauthier4c4
Copy link

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

@i-just
Copy link
Contributor

i-just commented Aug 9, 2024

Hi, thanks for reporting! I was able to replicate this. It's related to the nested entries being disabled. I raised a PR for it.

@brandonkelly
Copy link
Member

Craft 5.3.2 is out with the fix for this. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants