]> source.dussan.org Git - redmine.git/commitdiff
issue subjects modified on gantt pdf export
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 29 Nov 2006 20:06:44 +0000 (20:06 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 29 Nov 2006 20:06:44 +0000 (20:06 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@57 e93f8b46-1217-0410-a6f0-8f06a7374b81

redmine/app/views/projects/gantt.rfpdf

index cd412f5e9bc4a3aaed8c793c4caa81b6e7d07654..545abb483010c7e35bcec38e625be083c54aa936 100644 (file)
@@ -108,7 +108,7 @@ pdf.SetFont('Arial','B',7)
 @issues.each do |i|\r
        pdf.SetY(top)\r
        pdf.SetX(15)\r
-       pdf.Cell(subject_width-15, 5, i.id.to_s + " " + i.subject.sub(/^(.{30}[^\s]*\s).*$/, '\1 (...)'), "LR")\r
+       pdf.Cell(subject_width-15, 5, "#{i.tracker.name} #{i.id}: #{i.subject}".sub(/^(.{30}[^\s]*\s).*$/, '\1 (...)'), "LR")\r
 \r
        pdf.SetY(top)\r
        pdf.SetX(subject_width)\r