Skip to content

Not Saving Order of Components in Dynamic Zone When Published #22170

@1337NamNori

Description

@1337NamNori

Bug report

Required System information

  • Node.js version: v18.20.4
  • Yarn version: 1.22.22
  • Strapi version: 5.4.0
  • Database: MySQL
  • Operating system: MacOS (darwin-arm64)
  • Is your project Javascript or Typescript: TypeScript

Describe the bug

Strapi Not Saving Order of Components in Dynamic Zone When Published

Steps to reproduce the behavior

  1. Go to Article edit page
  2. Drag and Drop components in dynamic zone
  3. Click on Save
  4. Switch to Published tab
  5. See error: Component order is not save like expect
    (in DB, column article_cmps.order is not saved for Published document, only saved for Draft document)

Expected Behavior:

The order of components in the dynamic zone should be preserved after publishing the content.

Actual Behavior:

The order of components is not preserved, and they appear in a different order after publishing.

Additional Information:

I have ensured that the dynamic zone is correctly configured in the Content-Type Builder.
I am using the latest version of Strapi.
I have not implemented any custom save logic for the dynamic zone.

Screen.Recording.2.2024-11-15.at.11.59.19.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    flag: EEIssues correlates to internal EE ticketissue: bugIssue reporting a bugseverity: criticalIf the issue has a security impact or breaks core usage of the productsource: core:content-managerSource is core/content-manager packagestatus: confirmedConfirmed by a Strapi Team member or multiple community membersversion: 5Issue is present in Strapi 5

    Type

    No type

    Projects

    Status

    Fixed/Shipped

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions