Skip to content

Field order in cloned matrix field is incorrect #95

@paulgoodfield

Description

@paulgoodfield

Describe the bug

When cloning an existing matrix field, the order of the fields in each matrix block in the newly cloned field are incorrect. It looks like they're ordering alphabetically rather than matching the order of the original matrix field being cloned.

Steps to reproduce

  1. Using the CMS/plugin versions described below, clone a matrix field that contains blocks that have multiple fields
  2. The blocks in the newly cloned matrix field have their fields in a different order

Craft CMS version

4.3.6.1

Plugin version

3.0.5

Multi-site?

No

Additional context

Looking back through previous issues, it says this was fixed in v2.1.6 but the issue seems to still be there.

Here is a list of other info that may be useful:

PHP version 8.1.11
Database driver & version MySQL 10.5.13
Craft edition & version Craft Pro 4.3.6.1

Plugins

  • Cloner 2.0.3
  • Colour Swatches 4.2.1
  • Environment Label 4.0.2
  • Forms 4.0.11
  • Matrix Field Preview 4.0.5
  • Navigation 2.0.16
  • Redactor 3.0.3
  • Retour 4.1.9
  • SEOmatic 4.0.19
  • Super Table 3.0.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions