Drupal Version: 4.7.3
CCK Version: 4.7.0
Date Version: 4.7.0
When creating a new date field with the content construction kit, I always receive the error "Input granularity must include a year." when submitting changes to the date "Widget Settings" page. I have verified that I have the Year selected under Date Settings->Input Options->Granularity, but I still receive the error.
I see the same result whether I select Date or Datestamp, as well as any of the three formatting options under each of those (Select List, Text Field with strtotime validation, or Text Field with javascript pop-up calendar). I am stuck on the widget settings page, so I'm never sure whether the content is created successfully.
I've attached a screenshot of the error.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | date_field_validation_year.patch.txt | 677 bytes | Bèr Kessels |
| dateGranularity.jpg | 128.83 KB | jafish |
Comments
Comment #1
karens commentedI cannot replicate this on latest versions of all these modules. What other modules do you have installed? Is anyone else experiencing this?
Comment #2
nubeli commentedI get the same error. I've got a test site with Drupal 4.7.3, but the latest module versions for cck and date.
Comment #3
nubeli commentedSubsequent to my previous message, I updated the base system to 4.7.x-dev from Drupal 4.7.3 and the error has disappeared.
Comment #4
karens commentedLooks like this is fixed by updating to the latest version. You can re-open if not.
Comment #5
Bèr Kessels commentedNo luck here. I am on the latest 4.7 stable version and still run into this issue.
Comment #6
Bèr Kessels commentedHere is a patch that solves this issue.
Comment #7
karens commentedUgh! I can't believe I had such an obvious mistake in there. Thanks Ber! Fix committed to all branches.
Comment #8
(not verified) commentedComment #9
knalstaaf commentedFor Drupal 6 users: http://drupal.org/node/134144#comment-1982750