summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-04-20 00:53:20 -0700
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-04-20 00:53:20 -0700
commit60bf502bf15b95c870a8466011a6f91eb18759a9 (patch)
tree7d22d519840863746e1b14543ca851a154627e8c /app
parent1845429268364e75bffdeb1075de8f1606e157ec (diff)
parent69fd4763d2d239877c46b0fa6be894f1338fc4e3 (diff)
downloadgitlab-ce-60bf502bf15b95c870a8466011a6f91eb18759a9.tar.gz
Merge pull request #698 from Sindacious/master
Display Milestones without a due date as active
Diffstat (limited to 'app')
-rw-r--r--app/models/milestone.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/milestone.rb b/app/models/milestone.rb
index 20bc2486e2f..87e9d1db588 100644
--- a/app/models/milestone.rb
+++ b/app/models/milestone.rb
@@ -6,7 +6,7 @@ class Milestone < ActiveRecord::Base
validates_presence_of :title
def self.active
- where("due_date > ? ", Date.today)
+ where("due_date > ? OR due_date IS NULL", Date.today)
end
def percent_complete