[KEYCLOAK-5323] - Fixing filter when searching/selecting clients

This commit is contained in:
Pedro Igor 2017-08-25 14:06:28 -03:00
parent b7c9c397d6
commit 9a7d56097a

View file

@ -1472,7 +1472,11 @@ module.controller('ResourceServerPolicyClientDetailCtrl', function($scope, $rout
return;
}
Client.query({realm: $route.current.params.realm, search: query.term.trim(), max: 20}, function(response) {
data.results = response;
for (i = 0; i < response.length; i++) {
if (response[i].clientId.indexOf(query.term) != -1) {
data.results.push(response[i]);
}
}
query.callback(data);
});
},