Hi,
I am new user of Drupal. I guess you ppl will be able put this bug-fix in right place..
The archives modole provides for a selection of dates . That has no option for 2006.
I made rectification in the code.. Its here

// Prepare the values of the form fields.
$years = drupal_map_assoc(range(2000, 2006));

Just change 2005 to 2006 as shown above and it will work fine.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dww’s picture

Assigned: Unassigned » dww
FileSize
890 bytes

here's a patch that actually accomplishes this. i checked and this isn't an issue in cvs/4.7, since the end date was moved to 2010 in revision 1.87 (during the form API conversion). however, it seems a little weird to have that many years in the drop-down, though it's a pain to keep changing this code every year. not sure what's the best solution. so, i'll provide 3 patches and let someone else decide
what's the best:

1) hard-code 2006
2) hard-code 2010 (to match head)
3) get the current year via time() and use that

here's the patch for 2006. i'll put the other two in 2 more followups.

dww’s picture

FileSize
890 bytes

here's the one for 2010

dww’s picture

FileSize
946 bytes

and here's my personal favorite (so we never have to mess with this again) -- get the current year automatically.

dww’s picture

and, if y'all go with archive_4-6_auto-year.patch, here's a version that applies cleanly to the current cvs head (revision 1.87).

jblack’s picture

Patch is simple, sensible and safe. The patch is not critical for 4.7.0 (which is already RC) as the listed date is good until 2010. The patch should go in prior to 4.7.1 or 4.7.2.

dww’s picture

Version: x.y.z » 4.6.6
Priority: Minor » Normal

thanks for the vote of confidence, jblack. ;) however, this is a fairly nasty bug in 4.6 (where the end date is still 2005). so, i'm changing the version and the priority back so that this can be fixed in 4.6.x asap. i agree it can wait to go into 4.7.1...

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD, DRUPAL-4-7 and DRUPAL-4-6.

Anonymous’s picture

Status: Fixed » Closed (fixed)