From 86c057f94fd28dfd89b99584cbc9f5dc6dd1ab23 Mon Sep 17 00:00:00 2001 From: Roly Rudy Gutierrez Pinto Date: Wed, 13 Jan 2021 18:17:30 -0400 Subject: [PATCH] PMCORE-2701 'Replaced by' field is listing all users after to delete the word in the search field --- .../src/components/personalInformation.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/workflow/engine/methods/userPersonalInformation/src/components/personalInformation.vue b/workflow/engine/methods/userPersonalInformation/src/components/personalInformation.vue index 0615862ba..0e2858eff 100644 --- a/workflow/engine/methods/userPersonalInformation/src/components/personalInformation.vue +++ b/workflow/engine/methods/userPersonalInformation/src/components/personalInformation.vue @@ -845,10 +845,14 @@ }); }, getUsersList() { + if(this.filterUser.trim() === ""){ + this.usersList = []; + return null; + } let formData = new FormData(); formData.append("action", "usersList"); formData.append("USR_UID", this.form.USR_UID); - formData.append("filter", this.filterUser); + formData.append("filter", this.filterUser.trim()); return axios.post(this.$root.baseUrl() + "users/usersAjax", formData) .then(response => { response;