Skip to content
Snippets Groups Projects
Commit bc39997c authored by Emmanuel Viennet's avatar Emmanuel Viennet
Browse files

Fix: edition user avec cas_id numérique

parent bb99cd8a
No related branches found
No related tags found
No related merge requests found
...@@ -264,7 +264,11 @@ class TF(object): ...@@ -264,7 +264,11 @@ class TF(object):
self.values[field] = "" self.values[field] = ""
# convert numbers, except ids # 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: # enforce integer ids:
try: try:
self.values[field] = int(self.values[field]) self.values[field] = int(self.values[field])
......
...@@ -415,6 +415,7 @@ def create_user_form(user_name=None, edit=0, all_roles=True): ...@@ -415,6 +415,7 @@ def create_user_form(user_name=None, edit=0, all_roles=True):
{ {
"title": "Identifiant CAS", "title": "Identifiant CAS",
"input_type": "text", "input_type": "text",
"no_convert": True, # empeche conversion en int de l'id
"explanation": "id du compte utilisateur sur le CAS de l'établissement " "explanation": "id du compte utilisateur sur le CAS de l'établissement "
+ ( + (
"<b>pa défaut identique à l'identifiant ScoDoc</b> " "<b>pa défaut identique à l'identifiant ScoDoc</b> "
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"Infos sur version ScoDoc" "Infos sur version ScoDoc"
SCOVERSION = "9.7.48" SCOVERSION = "9.7.49"
SCONAME = "ScoDoc" SCONAME = "ScoDoc"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment