From 010963faa4edd2a06ce98fbcaebacb5a690baa80 Mon Sep 17 00:00:00 2001 From: mfo Date: Wed, 25 Sep 2024 15:26:22 +0200 Subject: [PATCH] fix(export_template#preview): avoid 414 responses, using get method is not a good option for procedure with a lot of types_de_champ, otherwise we reach http get size limit --- app/views/instructeurs/export_templates/_form.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/instructeurs/export_templates/_form.html.haml b/app/views/instructeurs/export_templates/_form.html.haml index a8d9e8c64..629484f07 100644 --- a/app/views/instructeurs/export_templates/_form.html.haml +++ b/app/views/instructeurs/export_templates/_form.html.haml @@ -11,8 +11,8 @@ .fr-grid-row.fr-grid-row--gutters .fr-col-12.fr-col-md-8.fr-pr-4w - = form_with model: [:instructeur, procedure, export_template], data: { turbo: 'true', controller: 'autosubmit', method: :put } do |f| - %input.hidden{ type: 'submit', formaction: preview_instructeur_procedure_export_templates_path, data: { autosubmit_target: 'submitter' }, formnovalidate: 'true', formmethod: 'get' } + = form_with model: [:instructeur, procedure, export_template], data: { turbo: 'true', controller: 'autosubmit' } do |f| + %input.hidden{ type: 'submit', formaction: preview_instructeur_procedure_export_templates_path, data: { autosubmit_target: 'submitter' }, formnovalidate: 'true', formmethod: 'put' } = f.hidden_field :kind, value: 'zip'