]> source.dussan.org Git - redmine.git/commitdiff
Fixes r2226: exporting an issue with attachments to PDF raises an error (#2492).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 12 Jan 2009 17:45:23 +0000 (17:45 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 12 Jan 2009 17:45:23 +0000 (17:45 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2262 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/export/pdf.rb
test/functional/issues_controller_test.rb

index 5d75494edceafc73752d502c83f2b20f6854288b..932f1a812e66b5b603de0654a73e56aea7d55496 100644 (file)
@@ -21,6 +21,8 @@ require 'rfpdf/chinese'
 module Redmine
   module Export
     module PDF
+      include ActionView::Helpers::NumberHelper
+      
       class IFPDF < FPDF
         include GLoc
         attr_accessor :footer_date
index 107026184013b3f67c0e374a6863d8a73a7e29a9..14afd68d1436f631253d67fd089ddfef6ad951b5 100644 (file)
@@ -253,7 +253,7 @@ class IssuesControllerTest < Test::Unit::TestCase
   end
 
   def test_show_export_to_pdf
-    get :show, :id => 1, :format => 'pdf'
+    get :show, :id => 3, :format => 'pdf'
     assert_response :success
     assert_equal 'application/pdf', @response.content_type
     assert @response.body.starts_with?('%PDF')