diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb index eafdda7f9..8763c81ba 100644 --- a/lib/redmine/helpers/gantt.rb +++ b/lib/redmine/helpers/gantt.rb @@ -298,8 +298,10 @@ module Redmine 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] - coords = coordinates(version.start_date, version.due_date, version.completed_pourcent, options[:zoom]) - label = "#{h version } #{h version.completed_pourcent.to_i.to_s}%" + coords = coordinates(version.start_date, + version.due_date, version.completed_pourcent, + options[:zoom]) + label = "#{h version} #{h version.completed_pourcent.to_i.to_s}%" label = h("#{version.project} -") + label unless @project && @project == version.project case options[:format] when :html