Actions
Defect #13780
closedSpent hours have excessive flaction in PDF exported ticket list
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
PDF export
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Duplicate
Affected version:
Description
When exporting tickets list view to PDF and a ticket has a particular spent time value, the PDF exported shows excessive fraction digits. The following should be the point to be patched, but please review and fix this problem.
--- a/redmine/lib/redmine/export/pdf.rb
+++ b/redmine/lib/redmine/export/pdf.rb
@@ -251,6 +251,10 @@
if column.name == :subject
value = " " * level + value
end
+ if column.name == :spent_hours
+ value = "%.2f" % value.to_f
+ end
if value.is_a?(Date)
format_date(value)
elsif value.is_a?(Time)
Attached an example.
Files
Related issues
Actions