From: Jason Stephenson Date: Sun, 9 Jan 2022 00:59:18 +0000 (-0500) Subject: More fixing X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=435fbbea16376af5dcdeff6f76cdbabb95d20090;p=working%2FEvergreen.git More fixing --- diff --git a/Open-ILS/src/templates/staff/cat/item/index.tt2 b/Open-ILS/src/templates/staff/cat/item/index.tt2 index 7d21542443..00636307c8 100644 --- a/Open-ILS/src/templates/staff/cat/item/index.tt2 +++ b/Open-ILS/src/templates/staff/cat/item/index.tt2 @@ -33,7 +33,7 @@ s.OVERRIDE_TRANSFER_COPIES_TO_MARKED_VOLUME_BODY = "[% l('Reason(s) include: [_1]', '{{evt_desc}}') %]"; s.SUCCESS_UPDATE_INVENTORY = - "[% l('Updated most recent inventory data for [_1] items.', '{{res[0]}}') %]"; + "[% l('Updated most recent inventory data for [_1] items.', '{{success_count}}') %]"; s.FAIL_UPDATE_INVENTORY = "[% l('Failed to update recent inventory data for selected items.')%]"; s.ITEM_SUCCESSFULLY_MODIFIED = 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 774b4620bf..b7dfeb3413 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 @@ -560,7 +560,7 @@ function($scope , $q , $window , $location , $timeout , egCore , egNet , egGridD $scope.update_inventory = function() { var copy_list = gatherSelectedHoldingsIds(); - itemSvc.updateInventory(copy_list, $scope.gridControls.allItems()).then(function(res) { + itemSvc.updateInventory(copy_list, $scope.gridControls.allItems()).then(function(res,$scope) { if (res[0]) { $scope.success_count = res[0]; ngToast.create({