Skip to content

Commit

Permalink
Fixes #9983
Browse files Browse the repository at this point in the history
Temporary fix for this issue. using the entityservice like before.
  • Loading branch information
nul800sebastiaan committed Mar 18, 2021
1 parent e201977 commit 9a96b36
Showing 1 changed file with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
(function () {
"use strict";

function UserPickerController($scope, usersResource, localizationService, eventsService) {
function UserPickerController($scope, usersResource, entityResource, localizationService, eventsService) {

var vm = this;

vm.users = [];
Expand Down Expand Up @@ -102,17 +102,9 @@
vm.loading = true;

// Get users
usersResource.getPagedResults(vm.usersOptions).then(function (users) {

vm.users = users.items;

vm.usersOptions.pageNumber = users.pageNumber;
vm.usersOptions.pageSize = users.pageSize;
vm.usersOptions.totalItems = users.totalItems;
vm.usersOptions.totalPages = users.totalPages;

entityResource.getAll("User").then(function (data) {
vm.users = data;
preSelect($scope.model.selection, vm.users);

vm.loading = false;
});
}
Expand Down

0 comments on commit 9a96b36

Please sign in to comment.