summaryrefslogtreecommitdiffstats
path: root/lib/redmine
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-12-23 14:58:52 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-12-23 14:58:52 +0000
commitdf9ea24136059b502d156cb69c8bb2b9b6d952e1 (patch)
treef224402883f3366e92ab0f4cbcb0b7b2b81cc6f5 /lib/redmine
parent07fe46e9dfc1567d24de4ff8799a1e1c048b2adc (diff)
downloadredmine-df9ea24136059b502d156cb69c8bb2b9b6d952e1.tar.gz
redmine-df9ea24136059b502d156cb69c8bb2b9b6d952e1.zip
Makes Version#start_date return the minimum start_date of its issues.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4574 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine')
-rw-r--r--lib/redmine/helpers/gantt.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb
index af0fc4c72..4954434ce 100644
--- a/lib/redmine/helpers/gantt.rb
+++ b/lib/redmine/helpers/gantt.rb
@@ -319,7 +319,7 @@ module Redmine
options[:zoom] ||= 1
options[:g_width] ||= (self.date_to - self.date_from + 1) * options[:zoom]
- coords = coordinates(version.fixed_issues.minimum('start_date'), version.due_date, version.completed_pourcent, options[:zoom])
+ coords = coordinates(version.start_date, version.due_date, version.completed_pourcent, options[:zoom])
label = "#{h version } #{h version.completed_pourcent.to_i.to_s}%"
label = h("#{version.project} -") + label unless @project && @project == version.project