Merged in bugfix/PMCORE-2571 (pull request #7644)
PMCORE-2571 The name of the extended attribute does not follows the specification of the PRD Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
committed by
Julio Cesar Laura Avendaño
commit
e870fc8bd4
@@ -212,6 +212,11 @@
|
|||||||
this.statusAttributeIdMessage = this.$root.translation("ID_IS_REQUIRED");
|
this.statusAttributeIdMessage = this.$root.translation("ID_IS_REQUIRED");
|
||||||
return;
|
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) {
|
if (/^[a-zA-Z][_0-9a-zA-Z]+$/.test(this.form.attributeId) === false) {
|
||||||
this.statusAttributeId = false;
|
this.statusAttributeId = false;
|
||||||
this.statusAttributeIdMessage = this.$root.translation("ID_INVALID_DATA");
|
this.statusAttributeIdMessage = this.$root.translation("ID_INVALID_DATA");
|
||||||
|
|||||||
Reference in New Issue
Block a user