Mercurial > hg > soundsoftware-site
diff lib/redmine/helpers/gantt.rb @ 37:94944d00e43c
* Update to SVN trunk rev 4411
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Fri, 19 Nov 2010 13:24:41 +0000 |
parents | 40f7cfd4df19 |
children | af80e5618e9b |
line wrap: on
line diff
--- a/lib/redmine/helpers/gantt.rb Fri Sep 24 14:06:04 2010 +0100 +++ b/lib/redmine/helpers/gantt.rb Fri Nov 19 13:24:41 2010 +0000 @@ -283,8 +283,8 @@ 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 @@ 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] @@ -536,8 +536,6 @@ end output << "<span class='#{css_classes.join(' ')}'>" output << view.link_to_issue(issue) - output << ":" - output << h(issue.subject) output << '</span>' else ActiveRecord::Base.logger.debug "Gantt#subject_for_issue was not given an issue"