Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Doh, need to scope this query to the milestone

  • Loading branch information...
commit f96c43f0b6d3eb08e6b7fdb5fbddfa8cf2288a1c 1 parent 706e2e9
Kyle Neath authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/burndown/milestone_event.rb
2  lib/burndown/milestone_event.rb
@@ -9,7 +9,7 @@ class MilestoneEvent
9 9 belongs_to :milestone
10 10
11 11 def prev_record
12   - @prev_record ||= (self.class.first(:created_on.lt => self.created_on, :order => [:created_on.desc]) || MilestoneEvent.new)
  12 + @prev_record ||= (self.class.first(:created_on.lt => self.created_on, :milestone_id => self.milestone_id, :order => [:created_on.desc]) || MilestoneEvent.new)
13 13 end
14 14
15 15 def num_tickets_open

0 comments on commit f96c43f

Please sign in to comment.
Something went wrong with that request. Please try again.