Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Validation on Bard field not working

Open
#12,008 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
laravel, php
Domain
backend

Research direction

No source files or tests are named in the issue. Start by reproducing the steps in a fresh Statamic installation with a required Bard field, focusing on editing an entry and immediately clearing text that was just entered. Then trace the Bard field's validation path; done means the empty field is rejected in that sequence as well as in the other described cases.

Written by the indexing model from the issue text.

Description

bard
Bug description

Validation gets bypassed on Bard field when editing entry if the Bard field is filled with some text and then immediately (and manually) that field is emptied.

How to reproduce
  • Create a simple collection (eg "Books") and add a Bard field to that collection blueprint. Make Bard field required.
  • Now: create a book entry, fill entry title, fill the Bard with some random text, hit save, everything works as expected.
  • If then you edit that entry, erase content in the Bard and hit save, validation works as expected.
  • But then if you fill again the Bard with some content, and then immediately erase that content and then hit save, validation gets bypassed, and the entry is saved.
  • Bard field's handle is not using any of the reserved words detailed in the docs https://statamic.dev/tips/reserved-words

https://github.com/user-attachments/assets/1a71ac4e-0e3d-4253-aa04-f6eba9923e06

Logs

Environment
Environment
Application Name: Statamic
Laravel Version: 12.21.0
PHP Version: 8.4.10
Composer Version: 2.8.10
Environment: local
Debug Mode: ENABLED
URL: statamic-bard.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: 5.61.0 PRO
Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Dominant language
PHP
Stars
4.9k
Forks
647
Avg merge
1d 9h
Merged PRs (30d)
102

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from statamic/cms

All issues in statamic/cms

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.