Skip to content

[6.x] Default Bard field options (Image button) requires selection of Assets container #13601

@eminos

Description

@eminos

Bug description

When adding a Bard field from the CP, the default button options (including the Image button) requires an Assets collection to be selected. This is new for v6, in v5 it would just silently not enable the button if the assets container was left empty (AFAIK).

The issue is mostly a UX issue.

  • Feels wrong that the default selected buttons requires an additional setting to be set further down.
  • The error toast just shows "The given data was invalid". No indication of what's wrong or even to scroll down to look for the validation error.

How to reproduce

  • Add a Bard field to a blueprint
  • Don't change any of the default field settings, just click "Apply"
  • Error

Logs

Environment

Environment
Application Name: Statamic
Laravel Version: 12.47.0
PHP Version: 8.4.15
Composer Version: 2.9.3
Environment: local
Debug Mode: ENABLED
URL: statamic-six.test
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
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 6.0.0-beta.3 PRO

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