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

lunk rat’s picture

Title: Date Popup does not obey 'No default value' (defaults to current date) » Date field not obey 'No default value' (defaults to current date) when within field collection
Component: Date Popup » Code

Changing title to reflect new observations

lunk rat’s picture

Issue summary: View changes

Changing description based on new observations

gcaudle’s picture

I 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.

LizD’s picture

This 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.

LizD’s picture

Priority: Normal » Critical
Issue summary: View changes
damienmckenna’s picture

Title: Date field not obey 'No default value' (defaults to current date) when within field collection » Date field not obey 'No default value' (defaults to current date) when within Field Collection or Paragraph
Version: 7.x-2.6 » 7.x-2.x-dev
Issue tags: +Paragraphs, +Field collection
damienmckenna’s picture

Issue tags: +Needs tests

Would definitely need test coverage for this.