instructeur: limit the maximum size of a filter value

This prevents the URL from exceeding the max size, and
causing '414: Request-URI too large' errors.
This commit is contained in:
Pierre de La Morinerie 2021-07-20 12:00:29 +00:00
parent 4efd160cad
commit 32ab2f0a80
3 changed files with 14 additions and 1 deletions

View file

@ -86,7 +86,7 @@
= select_tag :field, options_for_select(@displayed_fields_options)
%br
= label_tag :value, "Valeur"
= text_field_tag :value
= text_field_tag :value, nil, maxlength: ProcedurePresentation::FILTERS_VALUE_MAX_LENGTH
= hidden_field_tag :statut, @statut
%br
= submit_tag "Ajouter le filtre", class: 'button'