Defect #14737 » RM_14737_gantt_completed_pourcent_truncated.diff
| gantt.rb (revision 1899) | ||
|---|---|---|
|
options[:g_width] ||= (self.date_to - self.date_from + 1) * options[:zoom]
|
||
|
coords = coordinates(version.start_date,
|
||
|
version.due_date, version.completed_percent,
|
||
|
options[:zoom])
|
||
|
label = "#{h version } #{h version.completed_percent.to_i.to_s}%"
|
||
|
# Fix completed percent rounded instead of truncated
|
||
|
label = "#{h version } #{h version.completed_percent.to_f.round}%"
|
||
|
label = h("#{version.project} -") + label unless @project && @project == version.project
|
||
|
case options[:format]
|
||