Posted by LinL on April 8, 2009 at 3:35pm
2 followers
Jump to:
| Project: | Date |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (duplicate) |
Issue Summary
Hi,
I have a date field set up as follows:
Widget type: Select List
Default value: Blank
Default value for To date: Blank
To Date: Optional
Granularity: Year
Select a From Date, but leave To date blank and go to Preview.
The From date is shown as expected, but the To Date is also filled in with the same date as the From date.
Then Save and only the From date is saved, which is correct, but it is confusing to see the To date filled in in the Preview/Edit form.
I've attached an export of my field.
Using D6.10, Date 6.x-2.x-dev (2009-Apr-02 00:06), CCK 6.x-2.2, PHP 5.2.4, MySQL 5.0.51a
| Attachment | Size | Status | Test result | Operations |
|---|---|---|---|---|
| testfromtodate.txt | 2.98 KB | Ignored: Check issue status. | None | None |
Comments
#1
This behavior has changed a bit in the latest release:
Now, if the "to date" is left blank and marked as optional, it is always automatically populated with the "From Date"
I think this is a bug.
This is a duplicate of #523218: Default value for To date: Blank should stay blank