From eddf15f724c55d68b025274bdbee9debd64907cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Hal=C3=A1sz?= Date: Mon, 25 Jun 2018 15:28:31 +0200 Subject: [PATCH] Return with HTML table instead of PDF in the saved report async task https://bugzilla.redhat.com/show_bug.cgi?id=1588072 --- app/models/miq_report_result.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/miq_report_result.rb b/app/models/miq_report_result.rb index b0a0656f8a5..4ac740e0642 100644 --- a/app/models/miq_report_result.rb +++ b/app/models/miq_report_result.rb @@ -274,7 +274,7 @@ def _async_generate_result(taskid, result_type, options = {}) new_res.report_results = user.with_my_timezone do case result_type.to_sym when :csv then rpt.to_csv - when :pdf then to_pdf + when :pdf then html_rows.join when :txt then rpt.to_text else raise _("Result type %{result_type} not supported") % {:result_type => result_type}