Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After upgrading to calendar 2.4 from calendar 2.2 my week display only shows all day events. These events displayed correctly under calendar 2.2. I updated to the latest dev version and the problem still exists.
These events with times display correctly on month and day views.
Looking at the calendar-week.tpl.php template file I un-commented the dsm($items) line and found the $items variable was an empty array.
What things can I do to debug this?
Drupal 6.19
Calendar 2.x dev (Jan 18)
CCK 2.9
Date 2.7
Comment | File | Size | Author |
---|---|---|---|
Screen shot 2011-01-20 at 9.07.56 AM.png | 120.26 KB | easp | |
Screen shot 2011-01-20 at 9.07.16 AM.png | 47.25 KB | easp |
Comments
Comment #1
kristiaanvandeneyndeSame goes for the Drupal 7 variant.
The docblock at the top of calendar-week.tpl.php seems to have been copied directly from calendar-day.tpl.php, even though the passed variables are totally different.
In calendar-day.tpl.php, the $rows array has the following keys:
In calendar-week.tpl.php, the $rows array has the following keys:
The calendar-week.tpl.php uses an $item variable in a crucial place, even though the variable is empty and undocumented.
Bumping to major as this breaks functionality.
Comment #2
KarenS CreditAttribution: KarenS commentedYou took a D6 report and switched it to D7, where the code is a total rewrite, so you've polluted the original report. Lack of documentation is not a major bug. Beyond that I have no idea what bug you are actually trying to report.
Comment #3
kristiaanvandeneyndeOk, apologies.
Tried not to create a new issue and instead posted here.
However, it now turns out the D7 bug is, in fact, a different bug.
I have created a new ticket here: #1454546: Week display for custom hour grouping is broken.
Comment #4
Neslee Canil PintoThe D6 branch is no longer supported so we're closing this issue. If you think this issue still exists in D7 you can open a new one.