diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-10-22 22:13:39 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-10-22 22:13:39 +0000 |
commit | ed608cb7d39ff1224a4d1cad4b96ba0fa3505947 (patch) | |
tree | e8babe00a73ee252acd62cefaec5f8c534b8b1d9 /lib | |
parent | b7e3f80e14e56d8d776e0fef1807b936d11adfb0 (diff) | |
download | redmine-ed608cb7d39ff1224a4d1cad4b96ba0fa3505947.tar.gz redmine-ed608cb7d39ff1224a4d1cad4b96ba0fa3505947.zip |
Fixed: error on gantt when no issue have a due date (#6350).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4280 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/helpers/gantt.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb index cec323720..0f86648e7 100644 --- a/lib/redmine/helpers/gantt.rb +++ b/lib/redmine/helpers/gantt.rb @@ -283,8 +283,8 @@ module Redmine end def line_for_project(project, options) - # Skip versions that don't have a start_date - if project.is_a?(Project) && project.start_date + # Skip versions that don't have a start_date or due date + if project.is_a?(Project) && project.start_date && project.due_date options[:zoom] ||= 1 options[:g_width] ||= (self.date_to - self.date_from + 1) * options[:zoom] @@ -419,7 +419,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 + if version.is_a?(Version) && version.start_date && version.due_date options[:zoom] ||= 1 options[:g_width] ||= (self.date_to - self.date_from + 1) * options[:zoom] |