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.0
PHP Version: 8.3.22
Composer Version: 2.9.7
Environment: local
Debug Mode: ENABLED
Maintenance Mode: OFF
Timezone: UTC
Locale: en

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: sqlite
Logs: stack / single
Mail: log
Queue: sync
Session: file

Storage
public/storage: NOT LINKED

Statamic
Addons: 0
License Key: Not set
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 6.24.2 Solo

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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