Skip to content

Bard sets show the wrong values after saving with shortkey #15440

Description

@helloiamlukas

Bug description

With remove_empty_nodes: true in the blueprint, saving an entry with cmd+s makes Bard sets display the next set's values. Saving once more writes those wrong values to the file.

How to reproduce

  1. Clone https://github.com/helloiamlukas/bard-save-bug
  2. Open /cp/collections/articles/entries/repro-entry
  3. Click into the Bard editor (an empty paragraph, not into a set)
  4. Press cmd+s
  5. The first two sets will be rendered wrong now (the file is still okay!)
  6. Press cmd+s again
  7. The sets are rendered wrong again, but this time also the modified sets are written to the file

Logs

Environment

Laravel Version: 13.31.0
PHP Version: 8.5.8
Composer Version: 2.10.2
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.32.0 Solo

Installation

Starter Kit using 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