Skip to content
Snippets Groups Projects
Commit c6fa5748 authored by Timothee P's avatar Timothee P :sunflower:
Browse files

fix: prevent custom field with same name but different case

parent becf5b24
No related branches found
No related tags found
1 merge request!855REDMINE_ISSUE-23375 | Création de vues pour les types de signalements générées automatiquement dans un schéma métier de la BD PostgreSQL
......@@ -636,7 +636,7 @@ export default {
checkUniqueName() {
const occurences = this.customForms
.map((el) => el.name)
.map((el) => el.name.toLowerCase()) // check with lower case in case of slugificaton for data views generation
.filter((el) => el === this.form.name.value);
return occurences.length === 1;
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment