- Issue created by @ramil g
- Merge request !70Normalize bucket keys by time and init event depth/max_depth for overlap safety. → (Open) created by ramil g
In the Calendar module’s day/week views, some events do not align correctly in the agenda grid. On inspection, the $inner buckets for events are being keyed with numeric indices (0,1,2…) instead of normalized time strings (HH:MM:SS). Because the theming layer expects items to be keyed by bucket floors like 12:00:00 or 12:15:00, these numeric keys cause events to drop into the wrong place or appear misaligned.
Normalize bucket keys when building $inner and $singleday_buckets:
• Use bucketFloor($time) to guarantee HH:MM:SS keys.
• Ensure all events (even when rendered without overlap) are placed in arrays keyed by their bucket floor.
• This change aligns the render array with what the templates expect and fixes the misalignment in day and week views.
Active
1.0
Code