]> source.dussan.org Git - redmine.git/commitdiff
Don't compute version start date if due_date is nil.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 6 Jan 2013 14:05:55 +0000 (14:05 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 6 Jan 2013 14:05:55 +0000 (14:05 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11136 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/helpers/gantt.rb

index 9aad579c5f7c3da1553fa9466cc3f26ab3d6ff4e..5b31d6ecb3454f8bcbe7096c3083aa8302b690bc 100644 (file)
@@ -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,