diff --git a/app/controllers/backoffice/dossiers_list_controller.rb b/app/controllers/backoffice/dossiers_list_controller.rb index 18d8edba9..205d29de7 100644 --- a/app/controllers/backoffice/dossiers_list_controller.rb +++ b/app/controllers/backoffice/dossiers_list_controller.rb @@ -35,7 +35,7 @@ class Backoffice::DossiersListController < ApplicationController params[:dossiers_smart_listing] = {page: dossiers_list_facade.service.default_page} end - default_smart_listing_create :new_dossiers, service.nouveaux.order_by_updated_at('asc') + default_smart_listing_create :new_dossiers, service.nouveaux.without_followers.order_by_updated_at('asc') default_smart_listing_create :follow_dossiers, service.suivi.order_by_updated_at('asc') default_smart_listing_create :all_state_dossiers, service.all_state.order_by_updated_at('asc') default_smart_listing_create :archived_dossiers, service.archive diff --git a/app/facades/dossiers_list_facades.rb b/app/facades/dossiers_list_facades.rb index 9f2b556b7..0e74c6dc8 100644 --- a/app/facades/dossiers_list_facades.rb +++ b/app/facades/dossiers_list_facades.rb @@ -64,7 +64,7 @@ class DossiersListFacades end def nouveaux_total - service.nouveaux.count + service.nouveaux.without_followers.count end def suivi_total