From fbb42c7ec1c09e0a4fdac9bc586b27af3b31d134 Mon Sep 17 00:00:00 2001 From: Roly Rudy Gutierrez Pinto Date: Fri, 18 Dec 2020 09:36:19 -0400 Subject: [PATCH] PMCORE-2579 Extenden Attributes with repeated attribute can be created --- .../src/components/newUserAttribute.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/workflow/engine/methods/userExtendedAttributes/src/components/newUserAttribute.vue b/workflow/engine/methods/userExtendedAttributes/src/components/newUserAttribute.vue index 673aa0d88..87360f274 100644 --- a/workflow/engine/methods/userExtendedAttributes/src/components/newUserAttribute.vue +++ b/workflow/engine/methods/userExtendedAttributes/src/components/newUserAttribute.vue @@ -215,7 +215,15 @@ this.statusAttributeIdMessage = this.$root.translation("ID_INVALID_DATA"); return; } - this.saveForm(); + let promise = this.validateName(); + promise.then(response => { + response; + let promise2 = this.validateAttributeId(); + promise2.then(response2 => { + response2; + this.saveForm(); + }); + }); }, validateName() { this.statusValidation = false;