[open-ils-commits] [GIT] Evergreen ILS branch rel_3_2 updated. a36a915ab853babbc42f5f3d9a1fb7858fb1cf73
Evergreen Git
git at git.evergreen-ils.org
Fri Mar 8 09:50:24 EST 2019
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, rel_3_2 has been updated
via a36a915ab853babbc42f5f3d9a1fb7858fb1cf73 (commit)
from cbfdbd554f1147357c11bf94f0ef34c667c40e9e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit a36a915ab853babbc42f5f3d9a1fb7858fb1cf73
Author: Jason Boyer <jboyer at library.in.gov>
Date: Thu Jan 17 09:58:08 2019 -0500
LP1734775: Show multiple items in Item Status
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 at library.in.gov>
Signed-off-by: Josh Stompro <stompro at stompro.org>
Signed-off-by: Bill Erickson <berickxx at gmail.com>
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 2e98c386f3..1ff71f3bc4 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 = {
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/web/js/ui/default/staff/cat/item/app.js | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list