summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorAndrew8xx8 <avk@8xx8.ru>2013-02-18 13:10:09 +0400
committerAndrew8xx8 <avk@8xx8.ru>2013-02-18 14:43:50 +0400
commit0b512af803d007852bcba40c75203e0e45dda177 (patch)
treed85179b7bf98fb9de7cd7c6d7d7557dfe8db0939 /app/controllers
parent29f70acc987abe0b188ef187c70f179088d79589 (diff)
downloadgitlab-ce-0b512af803d007852bcba40c75203e0e45dda177.tar.gz
Milestone uses StateMachine now
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/milestones_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/milestones_controller.rb b/app/controllers/milestones_controller.rb
index a0c824e8abb..57f1e9e6bb3 100644
--- a/app/controllers/milestones_controller.rb
+++ b/app/controllers/milestones_controller.rb
@@ -12,7 +12,7 @@ class MilestonesController < ProjectResourceController
def index
@milestones = case params[:f]
- when 'all'; @project.milestones.order("closed, due_date DESC")
+ when 'all'; @project.milestones.order("state, due_date DESC")
when 'closed'; @project.milestones.closed.order("due_date DESC")
else @project.milestones.active.order("due_date ASC")
end