Permalink
Browse files

Fix timeline graph displays

  • Loading branch information...
1 parent f96c43f commit a918f30c38cc296f0f250a526f63daf35290b44a @kneath committed May 3, 2009
Showing with 1 addition and 3 deletions.
  1. +1 −3 views/timeline.erb
View
@@ -12,10 +12,8 @@
</tfoot>
<tbody>
<tr>
- <% day_event = @timeline_events.last %>
<% segmented_range(@milestone.start_date, @milestone.end_date, :segments => 15) do |day| %>
- <% old_event = day_event || Burndown::MilestoneEvent.new %>
- <td><%= (day_event = @timeline_events.select{ |e| e.created_on.strftime("%B %e") == day.strftime("%B %e") }[0]) ? day_event.num_tickets_open : old_event.num_tickets_open %></td>
+ <td><%= (day_event = @timeline_events.select{ |e| e.created_on.strftime("%B %e") == day.strftime("%B %e") }[0]) ? day_event.num_tickets_open : 0 %></td>
<% end %>
</tr>
</tbody>

0 comments on commit a918f30

Please sign in to comment.