summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-12-05 07:34:52 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-12-05 07:34:52 +0000
commit3f79a914d94aba5093b44e2de58406b3f7f254d9 (patch)
tree7617384b17de7f2c3ffd272dad4d6da82a3b0ca0 /lib
parentafbdc51e01813d82a12cbb59d456369ae4c9ae6f (diff)
downloadredmine-3f79a914d94aba5093b44e2de58406b3f7f254d9.tar.gz
redmine-3f79a914d94aba5093b44e2de58406b3f7f254d9.zip
pdf: add note number for single issue's PDF (#9720)
Contributed by Akiko T. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8090 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/export/pdf.rb5
1 files changed, 4 insertions, 1 deletions
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