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
This commit is contained in:
Toshi MARUYAMA 2011-12-05 07:39:55 +00:00
parent faad143c03
commit 08784f551e
1 changed files with 4 additions and 1 deletions

View File

@ -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