summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorgitlabhq <m@gitlabhq.com>2011-10-15 21:08:38 +0300
committergitlabhq <m@gitlabhq.com>2011-10-15 21:08:38 +0300
commit526ad466c86e69c3447c192d8cae8da653556058 (patch)
treee853a5b244f41695966e8f93d7228a924a825f37 /app
parent99777cab2a64a94cc6798a6f1ac562850bc08172 (diff)
downloadgitlab-ce-526ad466c86e69c3447c192d8cae8da653556058.tar.gz
fix issue sorting
Diffstat (limited to 'app')
-rw-r--r--app/controllers/issues_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb
index 1f507660540..6da5dea8bf7 100644
--- a/app/controllers/issues_controller.rb
+++ b/app/controllers/issues_controller.rb
@@ -71,7 +71,7 @@ class IssuesController < ApplicationController
end
def sort
- @issues = @project.issues.all
+ @issues = @project.issues.where(:id => params['issue'])
@issues.each do |issue|
issue.position = params['issue'].index(issue.id.to_s) + 1
issue.save