Commit a29c8a7f authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

fix issue sorting

parent f77986bf
......@@ -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