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

Date validation does not work correctly when using a fieldset within bard #11095

Open
vintagesucks opened this issue Nov 8, 2024 · 0 comments

Comments

@vintagesucks
Copy link

Bug description

When using a date validation such as before_or_equal:today in a fieldset within bard, the validation does not work as expected. If either no or any date value is provided, the validation fails with Must be a date before or equal to today..

This worked in Statamic 4, as shown in the screenshots and repositories below.

Statamic 4:
grafik

Statamic 5:
grafik

How to reproduce

Statamic 4 reproduction repo: https://github.com/vintagesucks/repro-statamic-4-date-validation (no issue)

Statamic 5 reproduction repo: https://github.com/vintagesucks/repro-statamic-5-date-validation

  • Login to control panel ([email protected] / password)
  • Open Home page
  • Add New Set set
  • Click Save & Publish

Logs

No response

Environment

Application Name: Statamic
Laravel Version: 11.30.0
PHP Version: 8.3.13
Composer Version: 2.7.7
Environment: local
Debug Mode: ENABLED
URL: localhost
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

Statamic
Addons: 0
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 5.37.0 Solo

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
Projects
None yet
Development

No branches or pull requests

2 participants