Commit 48403d88 authored by THEO GUILLON's avatar THEO GUILLON
Browse files

Merge branch '348-supprimer-la-possibilite-de-cree-un-champ-avec-le-meme-id' into '1.2.0'

Resolve "supprimer la possibilité de crée un champ avec le meme id"

Closes #348

See merge request libriciel/pole-citoyens/web-DPO/web-DPO!315
parents fbcb315d bfa3d4cd
......@@ -878,7 +878,7 @@ let createForm = function(typeCreateForm) {
return false;
}
if ($('#'+nameField) !== 0) {
if ($('#'+nameField).length !== 0) {
alert('Un champ possède déjà ce nom de variable !');
return false;
}
......@@ -1254,4 +1254,4 @@ let createForm = function(typeCreateForm) {
$('#'+idBtnApplicable).closest(fieldOptions).find('input.nameForm').attr('readonly', true);
}
};
\ No newline at end of file
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment