From 60912a8aea4a5f0fedadc691fcacc3c0dc3bff58 Mon Sep 17 00:00:00 2001 From: Iziram Date: Tue, 19 Sep 2023 10:53:55 +0200 Subject: [PATCH] Assiduites : bug fix justi journee entiere --- app/templates/assiduites/pages/ajout_justificatif.j2 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/templates/assiduites/pages/ajout_justificatif.j2 b/app/templates/assiduites/pages/ajout_justificatif.j2 index e1ee013e40..1194ff1a8f 100644 --- a/app/templates/assiduites/pages/ajout_justificatif.j2 +++ b/app/templates/assiduites/pages/ajout_justificatif.j2 @@ -234,9 +234,11 @@ const date_str_deb = document.getElementById("justi_date_debut").value const date_str_fin = document.getElementById("justi_date_debut").value + + return { - "deb": `${date_str_deb}T${assi_morning}`, - "fin": `${date_str_fin}T${assi_evening}`, + "deb": date_str_deb ? `${date_str_deb}T${assi_morning}` : "", + "fin": date_str_fin ? `${date_str_fin}T${assi_evening}` : "", } }