summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-11-09 08:54:45 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-11-09 08:54:45 +0000
commit1871378648e1a35aa3afa8b80335215a22a956ec (patch)
tree395857cf2eb02d0e30cfa8b880ce5bf1ed705117 /lib
parent3661766edc1b0e8647e51450b429baa89cbaa5d6 (diff)
downloadredmine-1871378648e1a35aa3afa8b80335215a22a956ec.tar.gz
redmine-1871378648e1a35aa3afa8b80335215a22a956ec.zip
Gantt: sort versions like on the roadmap (#7335).
git-svn-id: http://svn.redmine.org/redmine/trunk@12247 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/helpers/gantt.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb
index 198de20a0..e9e77ff91 100644
--- a/lib/redmine/helpers/gantt.rb
+++ b/lib/redmine/helpers/gantt.rb
@@ -693,11 +693,7 @@ module Redmine
end
def self.sort_versions!(versions)
- versions.sort! {|a, b| sort_version_logic(a) <=> sort_version_logic(b)}
- end
-
- def self.sort_version_logic(version)
- [(version.start_date || Date.new()), version.id]
+ versions.sort!
end
def current_limit