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:
parent
4efd160cad
commit
32ab2f0a80
3 changed files with 14 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue