RED-5741: Fixed special characters showing when there's a duplicate technical name.
This commit is contained in:
parent
db6f58e489
commit
73268f65c9
@ -203,7 +203,7 @@ export class AddEditEntityComponent extends BaseFormComponent implements OnInit
|
|||||||
let technicalName = baseTechnicalName.replaceAll(/[^A-Za-z0-9_-]/g, '');
|
let technicalName = baseTechnicalName.replaceAll(/[^A-Za-z0-9_-]/g, '');
|
||||||
let suffix = 1;
|
let suffix = 1;
|
||||||
while (existingTechnicalNames.includes(technicalName)) {
|
while (existingTechnicalNames.includes(technicalName)) {
|
||||||
technicalName = [baseTechnicalName, suffix++].join('_');
|
technicalName = [technicalName, suffix++].join('_');
|
||||||
}
|
}
|
||||||
return technicalName;
|
return technicalName;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user