Fix issue pdf export #561

The pdf export tried to export the initial journal, which it shouldn't.
This commit is contained in:
Felix Schäfer 2011-08-21 12:16:18 +02:00
parent 9e12deda97
commit 8f4439e0d4
1 changed files with 1 additions and 0 deletions

View File

@ -408,6 +408,7 @@ module Redmine
pdf.RDMCell(190,5, l(:label_history), "B")
pdf.Ln
for journal in issue.journals.find(:all, :include => [:user], :order => "#{Journal.table_name}.created_at ASC")
next if journal.initial?
pdf.SetFontStyle('B',8)
pdf.RDMCell(190,5, format_time(journal.created_at) + " - " + journal.user.name)
pdf.Ln