fix issue sorting

This commit is contained in:
gitlabhq 2011-10-15 21:08:38 +03:00
parent 99777cab2a
commit 526ad466c8

View file

@ -71,7 +71,7 @@ class IssuesController < ApplicationController
end end
def sort def sort
@issues = @project.issues.all @issues = @project.issues.where(:id => params['issue'])
@issues.each do |issue| @issues.each do |issue|
issue.position = params['issue'].index(issue.id.to_s) + 1 issue.position = params['issue'].index(issue.id.to_s) + 1
issue.save issue.save