pdf: indent subject of subtask ticket in exported issues PDF (#8617)

Contributed by Hayato Ito.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7761 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-11-10 10:10:24 +00:00
parent f1cc1943df
commit 9334d29520
1 changed files with 5 additions and 1 deletions

View File

@ -28,6 +28,7 @@ module Redmine
module PDF
include ActionView::Helpers::TextHelper
include ActionView::Helpers::NumberHelper
include IssuesHelper
class ITCPDF < TCPDF
include Redmine::I18n
@ -186,7 +187,7 @@ module Redmine
pdf.SetFontStyle('',8)
pdf.SetFillColor(255, 255, 255)
previous_group = false
issues.each do |issue|
issue_list(issues) do |issue, level|
if query.grouped? &&
(group = query.group_by_column.value(issue)) != previous_group
pdf.SetFontStyle('B',9)
@ -203,6 +204,9 @@ module Redmine
show_value(cv)
else
value = issue.send(column.name)
if column.name == :subject
value = " " * level + value
end
if value.is_a?(Date)
format_date(value)
elsif value.is_a?(Time)