OSDN Git Service
(root)
/
wvm
/
gitlab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99777ca
)
fix issue sorting
author
gitlabhq
<m@gitlabhq.com>
Sat, 15 Oct 2011 18:08:38 +0000
(21:08 +0300)
committer
gitlabhq
<m@gitlabhq.com>
Sat, 15 Oct 2011 18:08:38 +0000
(21:08 +0300)
app/controllers/issues_controller.rb
patch
|
blob
|
history
diff --git
a/app/controllers/issues_controller.rb
b/app/controllers/issues_controller.rb
index
1f50766
..
6da5dea
100644
(file)
--- 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