Merge pull request #8815 from demarches-simplifiees/fix/8801

FIX - Garde les tags dans les params lors de la pagination
This commit is contained in:
Colin Darie 2023-03-29 07:02:42 +00:00 committed by Paul Chavard
commit 05abc34ea4

View file

@ -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'