The ListCtrl controller was only displaying a single
copy when an id list was passed to Item Status in the
URL. This branch separates each id into a separate
fetch call and when all have been resolved it
refreshes the grid, which now has all of the items.
Signed-off-by: Jason Boyer <jboyer@library.in.gov>
Signed-off-by: Josh Stompro <stompro@stompro.org>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
}
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 = {