From e1d70f4e4a8fd887bde61fe7d9c93adba2a46865 Mon Sep 17 00:00:00 2001 From: Xavier J Date: Tue, 25 Oct 2016 12:11:11 +0200 Subject: [PATCH] Change count on administrations page --- app/views/administrations/_list.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/administrations/_list.html.haml b/app/views/administrations/_list.html.haml index 346bb7551..6a20b807e 100644 --- a/app/views/administrations/_list.html.haml +++ b/app/views/administrations/_list.html.haml @@ -20,7 +20,7 @@ = admin.procedures.where(published: true).count %td - total_dossier = 0 - - admin.procedures.each do |procedure| total_dossier += procedure.dossiers.count end + - admin.procedures.each do |procedure| total_dossier += procedure.dossiers.where.not(state: :draft).count end = total_dossier = smart_listing.paginate = smart_listing.pagination_per_page_links