Commit b651a4fd authored by Douwe Maan's avatar Douwe Maan

Fix Milestone.upcoming

parent a4fa5d3e
...@@ -83,7 +83,7 @@ class Milestone < ActiveRecord::Base ...@@ -83,7 +83,7 @@ class Milestone < ActiveRecord::Base
end end
def self.upcoming def self.upcoming
self.where('due_date > ?', Time.now).order(due_date: :asc).first self.where('due_date > ?', Time.now).reorder(due_date: :asc).first
end end
def to_reference(from_project = nil) def to_reference(from_project = nil)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment