Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selected syntax/language doesn't get saved in code field inside Bard #10106

Closed
joshuablum opened this issue May 17, 2024 · 0 comments · Fixed by #10139 or #10246
Closed

Selected syntax/language doesn't get saved in code field inside Bard #10106

joshuablum opened this issue May 17, 2024 · 0 comments · Fixed by #10139 or #10246
Labels

Comments

@joshuablum
Copy link
Member

Bug description

When you have a code field as a set inside of a bard field and select a different syntax/language than the default and save it, it doesn't save the selection but jumps back to the default. Works fine with a non-bard code field.

How to reproduce

  1. Create a bard field
  2. Add a code field set to it
  3. Select a default mode like PHP
  4. Edit an entry with the updated blueprint and select a different language than the default, like Markdown
  5. Save the entry
  6. See that the language mode is PHP instead of Markdown

Logs

No response

Environment

Environment
Application Name: Statamic
Laravel Version: 11.7.0
PHP Version: 8.3.6
Composer Version: 2.7.6
Environment: local
Debug Mode: ENABLED
URL: sandbox.test
Maintenance Mode: OFF

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

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

Statamic
Addons: 0
Sites: 1
Stache Watcher: Enabled
Static Caching: Disabled
Version: 5.2.0 Pro

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant