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