fix issue sorting
This commit is contained in:
parent
99777cab2a
commit
526ad466c8
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue