Commit 526ad466 authored by gitlabhq's avatar gitlabhq

fix issue sorting

parent 99777cab
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment