Merged in bugfix/PMCORE-2701 (pull request #7732)

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

Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
Roly Rudy Gutierrez Pinto
2021-01-14 13:03:01 +00:00
committed by Julio Cesar Laura Avendaño

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;