From 08784f551e13ab426536c3fda190a1d6a1b97d2c Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 5 Dec 2011 07:39:55 +0000 Subject: [PATCH] Merged r8090 from trunk pdf: add note number for single issue's PDF. Contributed by Akiko T. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.3-stable@8091 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/export/pdf.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/redmine/export/pdf.rb b/lib/redmine/export/pdf.rb index 41d502a2b..be4f4df94 100644 --- a/lib/redmine/export/pdf.rb +++ b/lib/redmine/export/pdf.rb @@ -452,12 +452,15 @@ module Redmine pdf.SetFontStyle('B',9) pdf.RDMCell(190,5, l(:label_history), "B") pdf.Ln + indice = 0 for journal in issue.journals.find( :all, :include => [:user, :details], :order => "#{Journal.table_name}.created_on ASC") + indice = indice + 1 pdf.SetFontStyle('B',8) pdf.RDMCell(190,5, - format_time(journal.created_on) + " - " + journal.user.name) + format_time(journal.created_on) + " - " + + journal.user.name + " #" + indice.to_s ) pdf.Ln pdf.SetFontStyle('I',8) for detail in journal.details