From 8f4439e0d4243f0d5dd6b00a517823efab92a74c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=A4fer?= Date: Sun, 21 Aug 2011 12:16:18 +0200 Subject: [PATCH] Fix issue pdf export #561 The pdf export tried to export the initial journal, which it shouldn't. --- lib/redmine/export/pdf.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/redmine/export/pdf.rb b/lib/redmine/export/pdf.rb index 4e6a3b21..55edf20c 100644 --- a/lib/redmine/export/pdf.rb +++ b/lib/redmine/export/pdf.rb @@ -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