LP1734775: Show multiple items in Item Status
[evergreen-equinox.git] / Open-ILS / web / js / ui / default / staff / cat / item / app.js
index 2e98c38..1ff71f3 100644 (file)
@@ -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 = {