Skip to content

Commit

Permalink
Merge pull request #4 from tobias74/zms-1628-make-email-optional
Browse files Browse the repository at this point in the history
adjust email to be optional in the useraccount form
  • Loading branch information
tobias74 authored Nov 27, 2023
2 parents 4dff7ec + 57923b5 commit bfd64fd
Show file tree
Hide file tree
Showing 4 changed files with 5,082 additions and 358 deletions.
5,430 changes: 5,077 additions & 353 deletions zmsadmin/public/_js/reactcomponents.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion zmsadmin/public/_js/reactcomponents.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion zmsadmin/templates/block/useraccount/edit.twig
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
{
"label": "E-Mail:",
"description": metadata.email.description|filter((v, k) => k != 'pattern'),
"required": true,
"required": false,
"errors": exception.data.email.messages
},
[{
Expand Down
6 changes: 3 additions & 3 deletions zmsentities/schema/useraccount.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@
"type": "string",
"default": "",
"pattern": "^[a-zA-Z0-9_\\-\\.]{2,}@[a-zA-Z0-9_\\-\\.]{2,}\\.[a-z]{2,}$|^$",
"minLength": 1,
"minLength": 0,
"x-locale": {
"de_DE": {
"pointer": "Nutzer E-Mail",
"messages": {
"minLength": "Es muss eine E-Mail-Adresse angegeben werden.",
"minLength": "Es kann eine E-Mail-Adresse angegeben werden.",
"pattern": "Die E-Mail Adresse muss eine valide E-Mail im Format [email protected] sein."
}
}
Expand Down Expand Up @@ -192,4 +192,4 @@
}
}
}
}
}

0 comments on commit bfd64fd

Please sign in to comment.