[open-ils-commits] [GIT] Evergreen ILS branch master updated. 4ab4869d498c48b4808c7ec15ae053b874259151
Evergreen Git
git at git.evergreen-ils.org
Fri Mar 8 09:49:56 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, master has been updated
via 4ab4869d498c48b4808c7ec15ae053b874259151 (commit)
from 2c16628b0b29215bc7f7526f800f02b976b645a4 (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 4ab4869d498c48b4808c7ec15ae053b874259151
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