diff --git a/app/controllers/report_controller/schedules.rb b/app/controllers/report_controller/schedules.rb index fa474f70034..4bc1ab9d2ab 100644 --- a/app/controllers/report_controller/schedules.rb +++ b/app/controllers/report_controller/schedules.rb @@ -39,9 +39,9 @@ def schedule_get_all @sortdir = session[:schedule_sortdir].nil? ? "ASC" : session[:schedule_sortdir] if super_admin_user? # Super admins see all user's schedules - @view, @pages = get_view(MiqSchedule, :named_scope => [[:with_resource_type, "MiqReport"]]) # Get the records (into a view) and the paginator + @view, @pages = get_view(MiqSchedule, :named_scope => [[:with_towhat, "MiqReport"]]) # Get the records (into a view) and the paginator else - @view, @pages = get_view(MiqSchedule, :named_scope => [[:with_resource_type, "MiqReport"], [:with_userid, session[:userid]]]) # Get the records (into a view) and the paginator + @view, @pages = get_view(MiqSchedule, :named_scope => [[:with_towhat, "MiqReport"], [:with_userid, session[:userid]]]) # Get the records (into a view) and the paginator end @current_page = @pages[:current] unless @pages.nil? # save the current page number