diff --git a/app/controllers/report_controller/saved_reports.rb b/app/controllers/report_controller/saved_reports.rb index 26c7deba17d..87fba16b169 100644 --- a/app/controllers/report_controller/saved_reports.rb +++ b/app/controllers/report_controller/saved_reports.rb @@ -26,7 +26,7 @@ def fetch_saved_report(id) @report_result_id = session[:report_result_id] = rr.id session[:report_result_runtime] = rr.last_run_on task = MiqTask.find_by_id(rr.miq_task_id) - if rr.status.downcase == "complete" + if task && MiqTask.status_ok?(task.status) @report = rr.report_results session[:rpt_task_id] = nil if @report.blank?