[open-ils-commits] [GIT] Evergreen ILS branch master updated. 2015799e80e18d4259b7149986fec175e9238aad
Evergreen Git
git at git.evergreen-ils.org
Fri Aug 11 17:13:22 EDT 2017
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 2015799e80e18d4259b7149986fec175e9238aad (commit)
from d97cc9085b0834b1def1a75a26a84a75816e94f9 (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 2015799e80e18d4259b7149986fec175e9238aad
Author: Mike Rylander <mrylander at gmail.com>
Date: Thu Aug 10 16:41:03 2017 -0400
LP#1710010: Fix item status file upload
The item service currently living inside the item status app does not know how
to fetch multiple barcodes at once. So, we'll loop over them and refresh the
grid when they're all retrieved.
Signed-off-by: Mike Rylander <mrylander at gmail.com>
Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>
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 5628a48..5c6ab73 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
@@ -1107,12 +1107,19 @@ function($scope , $q , $routeParams , $location , $timeout , $window , egCore ,
barcodes.push(line);
});
- itemSvc.fetch(barcodes).then(
- function() {
- copyGrid.refresh();
- copyGrid.selectItems([itemSvc.copies[0].index]);
- }
- );
+ if (barcodes.length > 0) {
+ var promises = [];
+ angular.forEach(barcodes, function (b) {
+ promises.push(itemSvc.fetch(b));
+ });
+
+ $q.all(promises).then(
+ function() {
+ copyGrid.refresh();
+ copyGrid.selectItems([itemSvc.copies[0].index]);
+ }
+ );
+ }
}
});
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/web/js/ui/default/staff/cat/item/app.js | 19 +++++++++++++------
1 files changed, 13 insertions(+), 6 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list