This repository was archived by the owner on May 9, 2023. It is now read-only.
Description Describe the bug
An optional date field displays today's date when it should be blank.
To Reproduce
Steps to reproduce the behavior:
Have a fieldset for a Page with a replicator that includes a date field
date field has "Allow blank values?" toggled on.
Save page with that date field empty
Reload page and today's date appears
Expected behavior
Optional date fields should display "Add Date" button when blank. Adding a new replicator set works as expeced.
Saving the page doesn't save today's date for that field to disk. However, it's confusing.
Date field config
Date field: with bug, then as expected
Environment details (please complete the following information):
Statamic Version 2.11.21
Fresh Install or Upgrade: upgrade
OS: Ubuntu 18.04.5 LTS
Browser: Chrome
Web Server: Nginx on Digital Ocean provisioned by Laravel Forge
PHP Version: PHP 7.2.24-0ubuntu0.18.04.7
Addons installed: Logbook v1.0
Reactions are currently unavailable
Describe the bug
An optional date field displays today's date when it should be blank.
To Reproduce
Steps to reproduce the behavior:
Pagewith areplicatorthat includes adatefielddatefield has "Allow blank values?" toggled on.pagewith thatdatefield emptyExpected behavior
Optional date fields should display "Add Date" button when blank. Adding a new
replicatorset works as expeced.Saving the
pagedoesn't save today's date for that field to disk. However, it's confusing.Date field config

Date field: with bug, then as expected

Environment details (please complete the following information):