]> source.dussan.org Git - redmine.git/commitdiff
Display project names for versions too on PDF (#5904).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 25 Jul 2010 11:19:44 +0000 (11:19 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 25 Jul 2010 11:19:44 +0000 (11:19 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3884 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/export/pdf.rb

index 9ff69bb71c4ae45a81761b54e5c901adc856f81c..9b1f2b8a22900a877935d54ad7613ea1fdd11fdc 100644 (file)
@@ -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)