Project

General

Profile

Defect #14737 » RM_14737_gantt_completed_pourcent_truncated.diff

Jérôme BATAILLE, 2013-08-22 15:29

View differences:

gantt.rb (revision 1899)
317 318
          options[:g_width] ||= (self.date_to - self.date_from + 1) * options[:zoom]
318 319
          coords = coordinates(version.start_date,
319 320
                               version.due_date, version.completed_percent,
320 321
                               options[:zoom])
321
          label = "#{h version } #{h version.completed_percent.to_i.to_s}%"
322
          # Fix completed percent rounded instead of truncated
323
          label = "#{h version } #{h version.completed_percent.to_f.round}%"
322 324
          label = h("#{version.project} -") + label unless @project && @project == version.project
323 325

  
324 326
          case options[:format]
(2-2/4)