Skip to content

Commit

Permalink
allow to see saved chargeback report after linked MiqTask deleted, fo…
Browse files Browse the repository at this point in the history
  • Loading branch information
yrudman committed Aug 21, 2017
1 parent 1929a7f commit 48e3659
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/chargeback_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ def cb_rpts_fetch_saved_report(id)
else
@report_result_id = session[:report_result_id] = rr.id
session[:report_result_runtime] = rr.last_run_on
if MiqTask.state_finished(rr.miq_task_id)
if rr.status.downcase == "complete"
@report = rr.report_results
session[:rpt_task_id] = nil
if @report.blank?
Expand Down

0 comments on commit 48e3659

Please sign in to comment.