PMCORE-2701 'Replaced by' field is listing all users after to delete the word in the search field

This commit is contained in:
Roly Rudy Gutierrez Pinto
2021-01-13 18:17:30 -04:00
parent 3deca546fe
commit 86c057f94f

View File

@@ -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;