From c8c58e54c4d0a490a7a43ff283a03a7c8067d114 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Fri, 5 Feb 2021 21:34:26 +0100 Subject: [PATCH] Fix: controle affichage code et date naissance sur PV jury pdf --- sco_pvjury.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/sco_pvjury.py b/sco_pvjury.py index b28a45ff..148ad1fb 100644 --- a/sco_pvjury.py +++ b/sco_pvjury.py @@ -675,10 +675,6 @@ def formsemestre_pvjury_pdf( tf[2]["showTitle"] = True else: tf[2]["showTitle"] = False - if tf[2]["with_paragraph_nom"]: - tf[2]["with_paragraph_nom"] = True - else: - tf[2]["with_paragraph_nom"] = False if tf[2]["anonymous"]: tf[2]["anonymous"] = True else: @@ -773,12 +769,10 @@ def descrform_pvjury(context, sem): ( "with_paragraph_nom", { - "input_type": "checkbox", + "input_type": "boolcheckbox", "title": "Avec date naissance et code", "explanation": "ajoute informations sous le nom", - "default": "1", - "labels": [""], - "allowed_values": ("1",), + "default": True, }, ), (