FIX: handles not found reports in bulk loading (#6582)

This commit is contained in:
Joffrey JAFFEUX
2018-11-12 13:47:24 +01:00
committed by GitHub
parent 7c4d4331bc
commit 9c616e0679
7 changed files with 58 additions and 8 deletions

View File

@@ -39,7 +39,12 @@ class Admin::ReportsController < Admin::AdminController
Report.cache(report, 35.minutes)
end
reports << report if report
if report.blank?
report = Report._get(report_type, args)
report.error = :not_found
end
reports << report
end
end