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 =
$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({