diff --git a/app/controllers/reports_controller.rb b/app/controllers/reports_controller.rb index 524123e90..7a544e972 100644 --- a/app/controllers/reports_controller.rb +++ b/app/controllers/reports_controller.rb @@ -182,7 +182,8 @@ class ReportsController < ApplicationController @html = '

No content

' if @html.blank? render pdf: 'report', header: { right: '[page] of [topage]' }, - template: 'reports/report.pdf.erb' + template: 'reports/report.pdf.erb', + disable_javascript: true end end end diff --git a/app/views/reports/report.pdf.erb b/app/views/reports/report.pdf.erb index aaa96c774..6e96f962d 100644 --- a/app/views/reports/report.pdf.erb +++ b/app/views/reports/report.pdf.erb @@ -10,9 +10,7 @@