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
This commit is contained in:
Jean-Philippe Lang 2013-01-06 14:05:55 +00:00
parent 8ee0b52d59
commit 98c8212d71
1 changed files with 1 additions and 1 deletions

View 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,