diff --git a/forms/common-themes/src/main/resources/theme/admin/base/resources/js/controllers/users.js b/forms/common-themes/src/main/resources/theme/admin/base/resources/js/controllers/users.js
index 66441dd..02ecbb7 100755
--- a/forms/common-themes/src/main/resources/theme/admin/base/resources/js/controllers/users.js
+++ b/forms/common-themes/src/main/resources/theme/admin/base/resources/js/controllers/users.js
@@ -164,8 +164,8 @@ module.controller('UserListCtrl', function($scope, realm, User) {
}
$scope.searchQuery = function() {
+ console.log("query.search: " + $scope.query.search);
$scope.searchLoaded = false;
- $scope.currentSearch = $scope.search;
$scope.users = User.query($scope.query, function() {
$scope.searchLoaded = true;
diff --git a/forms/common-themes/src/main/resources/theme/admin/base/resources/partials/user-list.html b/forms/common-themes/src/main/resources/theme/admin/base/resources/partials/user-list.html
index 8f1a5d0..aa1356e 100755
--- a/forms/common-themes/src/main/resources/theme/admin/base/resources/partials/user-list.html
+++ b/forms/common-themes/src/main/resources/theme/admin/base/resources/partials/user-list.html
@@ -24,7 +24,7 @@
Icon: search
</button>
</div>
- <span><span>or</span><button class="kc-link" ng-click="search = null; searchQuery()">View all users</button></span>
+ <span><span>or</span><button class="kc-link" ng-click="query.search = null; searchQuery()">View all users</button></span>
<div class="pull-right">
<a class="btn btn-primary" href="#/create/user/{{realm.realm}}">Add User</a>
</div>