Active
Project:
Date
Version:
7.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
15 May 2013 at 21:54 UTC
Updated:
5 Mar 2021 at 13:49 UTC
Jump to comment: Most recent
To reproduce:
Configure a filed collection that has a date field with Date popup any widget and set More settings and Values > Default Values > No default value
Observe that the field has default value of the current date.
This becomes a serious problem with non-required date fields: the user submits the form and the date fields are saved with the value of current date when the user did not intend to enter any data in the field. Date fields are often used with field collections in order to have a compound field that binds a date to other field values.
Comments
Comment #1
lunk rat commentedChanging title to reflect new observations
Comment #1.0
lunk rat commentedChanging description based on new observations
Comment #2
gcaudle commentedI am dealing with the same issue. One should be able to have a date field that does not require a date entered. A use case: We have a equipment content type that needs to be able to track the disposal date, but until the item is disposed of, the date field needs to be blank.
Comment #3
LizD commentedThis issue also exits with paragraph bundles. It is stopping my site from going live so I am going to upgrade this issue to critical as it has been open for years with no action and I am not able to proceed without a fix.
Comment #4
LizD commentedComment #5
damienmckennaComment #6
damienmckennaWould definitely need test coverage for this.