Skip to content

Commit

Permalink
Fix the title of reports in the generated PDFs
Browse files Browse the repository at this point in the history
  • Loading branch information
skateman committed Jun 13, 2018
1 parent f8de35f commit 8f4b134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller/report_downloads.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def render_pdf(report = nil)
:page_layout => 'landscape',
:page_size => @report.page_size || 'a4',
:run_date => format_timezone(@report.report_run_time, @result.user_timezone, "gtl"),
:title => "#{@report.class} \"#{@report.name}\"".html_safe
:title => @result.name
}

render :template => '/layouts/print/report', :layout => '/layouts/print'
Expand Down

0 comments on commit 8f4b134

Please sign in to comment.