diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-07-25 11:19:44 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-07-25 11:19:44 +0000 |
commit | bdad35a736141a92b4b2106f845d63a7fe67d640 (patch) | |
tree | 46c36fc981f21cbb26285a0583444d7701b518ee /lib/redmine | |
parent | cb5e63d846b625f5c10d784121d53ab08fe2f235 (diff) | |
download | redmine-bdad35a736141a92b4b2106f845d63a7fe67d640.tar.gz redmine-bdad35a736141a92b4b2106f845d63a7fe67d640.zip |
Display project names for versions too on PDF (#5904).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3884 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine')
-rw-r--r-- | lib/redmine/export/pdf.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/redmine/export/pdf.rb b/lib/redmine/export/pdf.rb index 9ff69bb71..9b1f2b8a2 100644 --- a/lib/redmine/export/pdf.rb +++ b/lib/redmine/export/pdf.rb @@ -415,13 +415,14 @@ module Redmine pdf.SetY(top) pdf.SetX(15) + text = "" if i.is_a? Issue text = "#{i.tracker} #{i.id}: #{i.subject}" - text = "#{i.project} - #{text}" unless project && project == i.project - pdf.Cell(subject_width-15, 5, text, "LR") else - pdf.Cell(subject_width-15, 5, "#{l(:label_version)}: #{i.name}", "LR") + text = i.name end + text = "#{i.project} - #{text}" unless project && project == i.project + pdf.Cell(subject_width-15, 5, text, "LR") pdf.SetY(top + 0.2) pdf.SetX(subject_width) |