diff --git a/app/models/miq_report_result.rb b/app/models/miq_report_result.rb index 2b76335854f..523fc981831 100644 --- a/app/models/miq_report_result.rb +++ b/app/models/miq_report_result.rb @@ -384,7 +384,7 @@ def self.with_current_user_groups end def self.with_chargeback - includes(:miq_report).where(:miq_reports => {:db => Chargeback.subclasses}) + includes(:miq_report).where(:miq_reports => {:db => Chargeback.subclasses.collect(&:name)}) end def self.with_saved_chargeback_reports(report_id = nil)