[open-ils-commits] [GIT] Evergreen ILS branch rel_3_1 updated. 8046744dd9a347f0d5e285dd966ec0e3d0f302a7
Evergreen Git
git at git.evergreen-ils.org
Fri Mar 8 09:50:57 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_1 has been updated
via 8046744dd9a347f0d5e285dd966ec0e3d0f302a7 (commit)
from 9988fbca91f1a95b7d41e0b204a98803526d9259 (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 8046744dd9a347f0d5e285dd966ec0e3d0f302a7
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 92901973f9..06d9a19595 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
@@ -540,11 +540,12 @@ function($scope , $q , $routeParams , $location , $timeout , $window , egCore ,
}
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(); });
}
}])
-----------------------------------------------------------------------
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