diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/helpers/gantt.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb index 39fdc5cde..398f8233f 100644 --- a/lib/redmine/helpers/gantt.rb +++ b/lib/redmine/helpers/gantt.rb @@ -638,11 +638,11 @@ module Redmine # Sorts a collection of issues by start_date, due_date, id for gantt rendering def sort_issues!(issues) - issues.sort! { |a, b| gantt_issue_compare(a, b, issues) } + issues.sort! { |a, b| gantt_issue_compare(a, b) } end # 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 x.lft <=> y.lft else |