PMCORE-2571 The name of the extended attribute does not follows the specification of the PRD

This commit is contained in:
Roly Rudy Gutierrez Pinto
2020-12-18 09:01:49 -04:00
parent fd17dd2c24
commit 468a6f029d

View File

@@ -210,6 +210,11 @@
this.statusAttributeIdMessage = this.$root.translation("ID_IS_REQUIRED");
return;
}
if (this.form.attributeId.length >= 50) {
this.statusAttributeId = false;
this.statusAttributeIdMessage = this.$root.translation("ID_INVALID_MAX_PERMITTED", [this.$root.translation('ID_ATTRIBUTE_ID'), '50']);
return;
}
if (/^[a-zA-Z][_0-9a-zA-Z]+$/.test(this.form.attributeId) === false) {
this.statusAttributeId = false;
this.statusAttributeIdMessage = this.$root.translation("ID_INVALID_DATA");