summaryrefslogtreecommitdiffstats
path: root/lib/redmine/export
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-01-22 11:57:02 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-01-22 11:57:02 +0000
commit494cd8cc363802d6fc15eaeb34fdefe88f15e940 (patch)
tree16083c7c94f1537afafdb1d6751d09f4b1e34085 /lib/redmine/export
parent419b195019a276513d1d58a0ed7d7a18c58425be (diff)
downloadredmine-494cd8cc363802d6fc15eaeb34fdefe88f15e940.tar.gz
redmine-494cd8cc363802d6fc15eaeb34fdefe88f15e940.zip
Avoid "private method `gsub' called for nil:NilClass" error when exporting issues with nil description (#7386).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4736 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/export')
-rw-r--r--lib/redmine/export/pdf.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/redmine/export/pdf.rb b/lib/redmine/export/pdf.rb
index c4a2c3d90..c98b25ff4 100644
--- a/lib/redmine/export/pdf.rb
+++ b/lib/redmine/export/pdf.rb
@@ -255,7 +255,7 @@ module Redmine
pdf.SetFontStyle('B',9)
pdf.Cell(35,5, l(:field_description) + ":")
pdf.SetFontStyle('',9)
- pdf.MultiCell(155,5, issue.description,"BR")
+ pdf.MultiCell(155,5, issue.description.to_s,"BR")
pdf.Line(pdf.GetX, y0, pdf.GetX, pdf.GetY)
pdf.Line(pdf.GetX, pdf.GetY, 170, pdf.GetY)
@@ -271,7 +271,7 @@ module Redmine
pdf.Ln
unless changeset.comments.blank?
pdf.SetFontStyle('',8)
- pdf.MultiCell(190,5, changeset.comments)
+ pdf.MultiCell(190,5, changeset.comments.to_s)
end
pdf.Ln
end
@@ -291,7 +291,7 @@ module Redmine
end
if journal.notes?
pdf.SetFontStyle('',8)
- pdf.MultiCell(190,5, journal.notes)
+ pdf.MultiCell(190,5, journal.notes.to_s)
end
pdf.Ln
end