diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-01-06 14:05:55 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-01-06 14:05:55 +0000 |
commit | 98c8212d71b4923e1d242c47bf30aace880927c5 (patch) | |
tree | b53bb1709ea2a6a8839cd74bde5c491829b39d55 /lib | |
parent | 8ee0b52d590d98a0cb56161135dfaf3a022ff2ee (diff) | |
download | redmine-98c8212d71b4923e1d242c47bf30aace880927c5.tar.gz redmine-98c8212d71b4923e1d242c47bf30aace880927c5.zip |
Don't compute version start date if due_date is nil.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11136 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/helpers/gantt.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb index 9aad579c5..5b31d6ecb 100644 --- a/lib/redmine/helpers/gantt.rb +++ b/lib/redmine/helpers/gantt.rb @@ -322,7 +322,7 @@ module Redmine def line_for_version(version, options) # Skip versions that don't have a start_date - if version.is_a?(Version) && version.start_date && version.due_date + if version.is_a?(Version) && version.due_date && version.start_date options[:zoom] ||= 1 options[:g_width] ||= (self.date_to - self.date_from + 1) * options[:zoom] coords = coordinates(version.start_date, |