Skip to content

Commit

Permalink
Merge pull request #1827 from yrudman/fix-downloading-reports
Browse files Browse the repository at this point in the history
Fixed issue with downloading report
(cherry picked from commit 282755e)

https://bugzilla.redhat.com/show_bug.cgi?id=1479994
  • Loading branch information
h-kataria authored and simaishi committed Aug 9, 2017
1 parent 63f0f18 commit cd6dce3
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 @@ -79,7 +79,7 @@ def render_report_data
# Send rendered report data
def send_report_data
if @sb[:render_rr_id]
rr = MiqReportResult.for_user(current_user).find(@sb[:render_rr_id])
rr = MiqReportResult.find(@sb[:render_rr_id])
filename = filename_timestamp(rr.report.title, 'export_filename')
disable_client_cache
generated_result = rr.get_generated_result(@sb[:render_type])
Expand Down

0 comments on commit cd6dce3

Please sign in to comment.