Skip to content

Reordering of nested bard sets causes data loss #14966

Description

@helloiamlukas

Bug description

When a Bard field contains another Bard field inside multiple sets, reordering the sets mixes up the content of the sets and causes data loss.

This is a follow up to #14759. It seems like the merged fix doesn't cause the re-renders anymore, but causes this new problem.

How to reproduce

  1. Clone repository: https://github.com/helloiamlukas/nested-bard-bug
  2. Open /cp/collections/articles/entries/7ac0bdda-1b84-45f8-ac52-2575dd7e8251 in browser
  3. Move Section 3 above Section 2. The content of the sets will be mixed up and the images will be deleted.

Logs

Environment

Laravel Version: 13.19.0PHP Version: 8.3.22Composer Version: 2.9.7Environment: localDebug Mode: ENABLEDMaintenance Mode: OFFTimezone: UTCLocale: enCacheConfig: NOT CACHEDEvents: NOT CACHEDRoutes: NOT CACHEDViews: CACHEDDriversBroadcasting: logCache: fileDatabase: sqliteLogs: stack / singleMail: logQueue: syncSession: fileStoragepublic/storage: NOT LINKEDStatamicAddons: 0License Key: Not setSites: 1Stache Watcher: Enabled (auto)Static Caching: DisabledVersion: 6.24.2 Solo

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions