##// END OF EJS Templates
gantt: remove unused issues parameter from gantt_issue_compare method...
Toshi MARUYAMA -
r10486:1db6a0f89cb5
parent child
Show More
@@ -638,11 +638,11 module Redmine
638
638
639 # Sorts a collection of issues by start_date, due_date, id for gantt rendering
639 # Sorts a collection of issues by start_date, due_date, id for gantt rendering
640 def sort_issues!(issues)
640 def sort_issues!(issues)
641 issues.sort! { |a, b| gantt_issue_compare(a, b, issues) }
641 issues.sort! { |a, b| gantt_issue_compare(a, b) }
642 end
642 end
643
643
644 # TODO: top level issues should be sorted by start date
644 # TODO: top level issues should be sorted by start date
645 def gantt_issue_compare(x, y, issues)
645 def gantt_issue_compare(x, y)
646 if x.root_id == y.root_id
646 if x.root_id == y.root_id
647 x.lft <=> y.lft
647 x.lft <=> y.lft
648 else
648 else
General Comments 0
You need to be logged in to leave comments. Login now