mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: handles not found reports in bulk loading (#6582)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user