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.

Comments

karens’s picture

I cannot replicate this on latest versions of all these modules. What other modules do you have installed? Is anyone else experiencing this?

nubeli’s picture

I get the same error. I've got a test site with Drupal 4.7.3, but the latest module versions for cck and date.

nubeli’s picture

Subsequent to my previous message, I updated the base system to 4.7.x-dev from Drupal 4.7.3 and the error has disappeared.

karens’s picture

Status: Active » Fixed

Looks like this is fixed by updating to the latest version. You can re-open if not.

Bèr Kessels’s picture

Status: Fixed » Active

No luck here. I am on the latest 4.7 stable version and still run into this issue.

Bèr Kessels’s picture

Status: Active » Needs review
StatusFileSize
new677 bytes

Here is a patch that solves this issue.

karens’s picture

Status: Needs review » Fixed

Ugh! I can't believe I had such an obvious mistake in there. Thanks Ber! Fix committed to all branches.

Anonymous’s picture

Status: Fixed » Closed (fixed)
knalstaaf’s picture