gantt: remove unused issues parameter from gantt_issue_compare method
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10698 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
8975f9c235
commit
1db6a0f89c
|
@ -638,11 +638,11 @@ module Redmine
|
||||||
|
|
||||||
# Sorts a collection of issues by start_date, due_date, id for gantt rendering
|
# Sorts a collection of issues by start_date, due_date, id for gantt rendering
|
||||||
def sort_issues!(issues)
|
def sort_issues!(issues)
|
||||||
issues.sort! { |a, b| gantt_issue_compare(a, b, issues) }
|
issues.sort! { |a, b| gantt_issue_compare(a, b) }
|
||||||
end
|
end
|
||||||
|
|
||||||
# TODO: top level issues should be sorted by start date
|
# TODO: top level issues should be sorted by start date
|
||||||
def gantt_issue_compare(x, y, issues)
|
def gantt_issue_compare(x, y)
|
||||||
if x.root_id == y.root_id
|
if x.root_id == y.root_id
|
||||||
x.lft <=> y.lft
|
x.lft <=> y.lft
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue