diff --git a/app/models/miq_widget/report_content.rb b/app/models/miq_widget/report_content.rb index 0a68ca36415..031468663d7 100644 --- a/app/models/miq_widget/report_content.rb +++ b/app/models/miq_widget/report_content.rb @@ -28,10 +28,12 @@ def generate(user_or_group) end end + empty_row = "#{_("No records found")}#{"" * (headers.length - 1)}" + rows = "" headers.each { |h| rows << "" } rows << "" - rows << (body.blank? ? "" : body) + rows << (body.presence || empty_row) rows << "
#{h}
" + _("No records found") + "
" end end