Hiding Issue Start days from the calendar
Added by Alex Bevilacqua over 14 years ago
If I only want to display issues on the calendar by due date, what's the quickest way to go about it? The reason for this is to reduce the duplication in my calendar when I have several tasks that only take a day or two to complete and I don't want their start days to be shown.
Replies (1)
RE: Hiding Issue Start days from the calendar - Added by Alex Bevilacqua over 14 years ago
Nevermind. Found what I was looking for ;)
Index: calendar.rb
===================================================================
--- calendar.rb (revision 3688)
+++ calendar.rb (working copy)
@@ -54,7 +54,8 @@
# Returns events for the given day
def events_on(day)
- ((@ending_events_by_days[day] || []) + (@starting_events_by_days[day] || [])).uniq
+ #((@ending_events_by_days[day] || []) + (@starting_events_by_days[day] || [])).uniq
+ (@ending_events_by_days[day] || [])
end
# Calendar current month
Note that I basically just commented out the original line, then removed the appending of @starting_events_by_days