diff options
author | gitlabhq <m@gitlabhq.com> | 2011-10-15 21:08:38 +0300 |
---|---|---|
committer | gitlabhq <m@gitlabhq.com> | 2011-10-15 21:08:38 +0300 |
commit | 526ad466c86e69c3447c192d8cae8da653556058 (patch) | |
tree | e853a5b244f41695966e8f93d7228a924a825f37 /app | |
parent | 99777cab2a64a94cc6798a6f1ac562850bc08172 (diff) | |
download | gitlab-ce-526ad466c86e69c3447c192d8cae8da653556058.tar.gz |
fix issue sorting
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/issues_controller.rb | 2 |
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 |