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:
1 parent
8ee0b52d59
commit
98c8212d71
1 file changed
+1
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user