|Project:||Drupal core |
|Component:||forms system |
|Category:||bug report |
|Status:||closed (fixed) |
If no default value is given for the date field, it is supposed to default to today's date. However, expand_date() uses !isset() to determine whether a value has been given. Since the value is an empty string when not specified, this means the date field defaults to 1 January 1900. The attached patch fixes this by replacing !isset() with empty().
|Attachment||Size||Status||Test result||Operations |
|form.inc-date.patch||735 bytes||Ignored: Check issue status.||None||None |