diff --git a/app/scodoc/TrivialFormulator.py b/app/scodoc/TrivialFormulator.py index 8bc15bda7..16ed3d782 100644 --- a/app/scodoc/TrivialFormulator.py +++ b/app/scodoc/TrivialFormulator.py @@ -264,7 +264,11 @@ class TF(object): self.values[field] = "" # convert numbers, except ids - if field.endswith("id") and self.values[field]: + if ( + field.endswith("id") + and not descr.get("no_convert") + and self.values[field] + ): # enforce integer ids: try: self.values[field] = int(self.values[field]) diff --git a/app/views/users.py b/app/views/users.py index 9857546b1..c55250311 100644 --- a/app/views/users.py +++ b/app/views/users.py @@ -415,6 +415,7 @@ def create_user_form(user_name=None, edit=0, all_roles=True): { "title": "Identifiant CAS", "input_type": "text", + "no_convert": True, # empeche conversion en int de l'id "explanation": "id du compte utilisateur sur le CAS de l'établissement " + ( "<b>pa défaut identique à l'identifiant ScoDoc</b> " diff --git a/sco_version.py b/sco_version.py index 26b192324..241e74c8c 100644 --- a/sco_version.py +++ b/sco_version.py @@ -3,7 +3,7 @@ "Infos sur version ScoDoc" -SCOVERSION = "9.7.48" +SCOVERSION = "9.7.49" SCONAME = "ScoDoc"