X-Git-Url: http://git.equinoxoli.org/?p=evergreen-equinox.git;a=blobdiff_plain;f=Open-ILS%2Fweb%2Fjs%2Fui%2Fdefault%2Fstaff%2Fcat%2Fitem%2Fapp.js;h=1ff71f3bc4841162d1583be6b0b0af3463aaafb7;hp=2e98c386f369b760a89e005283923a643cce6380;hb=4ab4869d498c48b4808c7ec15ae053b874259151;hpb=2c16628b0b29215bc7f7526f800f02b976b645a4 diff --git a/Open-ILS/web/js/ui/default/staff/cat/item/app.js b/Open-ILS/web/js/ui/default/staff/cat/item/app.js index 2e98c38..1ff71f3 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/item/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/item/app.js @@ -623,11 +623,12 @@ function($scope , $q , $window , $location , $timeout , egCore , egNet , egGridD } if (copyId.length > 0) { - itemSvc.fetch(null,copyId).then( - function() { - copyGrid.refresh(); - } - ); + var fetch_list = []; + angular.forEach(copyId, function (c) { + fetch_list.push(itemSvc.fetch(null,c)); + }); + + return $q.all(fetch_list).then(function (res) { copyGrid.refresh(); }); } $scope.statusIconColumn = {