diff options
author | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2011-10-15 22:08:38 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2011-10-15 22:08:38 +0400 |
commit | a29c8a7f7e41f0c045a56529274e3b93dbc4ac1b (patch) | |
tree | e853a5b244f41695966e8f93d7228a924a825f37 | |
parent | f77986bf5efc95c3447302acec50348244b74a64 (diff) |
fix issue sorting
-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 |