From c602efee18c9304d250dacf611480cebdc911f67 Mon Sep 17 00:00:00 2001 From: Simon Lehericey Date: Thu, 5 Oct 2017 15:58:52 +0200 Subject: [PATCH] Gestionnaire Legacy UI: fix nouveaux dossier list filter --- app/controllers/backoffice/dossiers_list_controller.rb | 2 +- app/facades/dossiers_list_facades.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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