diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-10-09 21:30:40 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-10-09 21:30:40 +0000 |
commit | b0013d9f68a0ce4347f568b7f8809ea8ef9f1d8b (patch) | |
tree | 3f19eaadcab2faeae2fe1e473147403a62ab2a99 /lib/redmine/export | |
parent | 5a02dcf0a9f5bbd8537b2bab8857eabd4b7b1253 (diff) | |
download | redmine-b0013d9f68a0ce4347f568b7f8809ea8ef9f1d8b.tar.gz redmine-b0013d9f68a0ce4347f568b7f8809ea8ef9f1d8b.zip |
Do not show parents/subtasks subjects that are not visible.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10586 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/export')
-rw-r--r-- | lib/redmine/export/pdf.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/redmine/export/pdf.rb b/lib/redmine/export/pdf.rb index e554144e2..cd1f33a2d 100644 --- a/lib/redmine/export/pdf.rb +++ b/lib/redmine/export/pdf.rb @@ -507,7 +507,7 @@ module Redmine pdf.SetFontStyle('',8) base_x = pdf.GetX i = 1 - issue.ancestors.each do |ancestor| + issue.ancestors.visible.each do |ancestor| pdf.SetX(base_x + i) buf = "#{ancestor.tracker} # #{ancestor.id} (#{ancestor.status.to_s}): #{ancestor.subject}" pdf.RDMMultiCell(190 - i, 5, buf) @@ -578,7 +578,7 @@ module Redmine pdf.SetFontStyle('B',9) pdf.RDMCell(35+155,5, l(:label_subtask_plural) + ":", "LTR") pdf.Ln - issue_list(issue.descendants.sort_by(&:lft)) do |child, level| + issue_list(issue.descendants.visible.sort_by(&:lft)) do |child, level| buf = truncate("#{child.tracker} # #{child.id}: #{child.subject}", :length => truncate_length) level = 10 if level >= 10 |