Validation on Bard field not working
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- PHP
- スター
- 4.9k
- フォーク
- 647
- 平均マージ
- 1日 9時間
- マージ済み PR(30日)
- 102
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
statamic/cms のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
assets
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
accessibility
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
antlers
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
smarty-php/smarty#1215 ·
-
sync-en
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
sync-en
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 4 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
ProfessionalWiki/NeoWiki#1637 ·
メンテナーはふだん 1 日以内に返信