From 12e0b232dc994b99a21f1a48b47d2b41e707ec35 Mon Sep 17 00:00:00 2001 From: Kara Diaby Date: Tue, 28 Mar 2023 14:53:43 +0200 Subject: [PATCH] Garde les tags dans les params lors de la pagination --- app/views/administrateurs/procedures/all.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/administrateurs/procedures/all.html.haml b/app/views/administrateurs/procedures/all.html.haml index 5cbe152a0..65d136b1c 100644 --- a/app/views/administrateurs/procedures/all.html.haml +++ b/app/views/administrateurs/procedures/all.html.haml @@ -38,7 +38,7 @@ - if @filter.from_publication_date.present? .selected-from-publication-date.fr-mb-2w = link_to "Depuis #{l(@filter.from_publication_date)}", all_admin_procedures_path(@filter.without(:from_publication_date)), class: 'fr-tag fr-tag--dismiss fr-mb-1w' - = paginate @procedures, views_prefix: 'administrateurs' + = paginate @procedures, params: @filter.params, views_prefix: 'administrateurs' %thead %tr %th{ scope: 'col' } @@ -52,4 +52,4 @@ %tbody{ 'data-turbo': 'true' } - @procedures.each do |procedure| = render partial: 'detail', locals: { procedure: procedure, show_detail: false } - .fr-mt-2w= paginate @procedures, views_prefix: 'administrateurs' + .fr-mt-2w= paginate @procedures, params: @filter.params, views_prefix: 'administrateurs'