From: Mike Rylander Date: Wed, 7 Oct 2015 19:08:56 +0000 (-0400) Subject: webstaff: force deletion of copies on "delete copies and volumes" X-Git-Tag: sprint4-merge-nov22~768 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1192a75905f4b35900ad0e2576e309f19dd9be87;p=working%2FEvergreen.git webstaff: force deletion of copies on "delete copies and volumes" Signed-off-by: Mike Rylander Signed-off-by: Galen Charlton Signed-off-by: Kathy Lussier --- diff --git a/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js b/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js index a933876388..63d01dfe9b 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js @@ -868,6 +868,9 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e if (cnList.length == 0) return; + var flags = {}; + if (vols && copies) flags.force_delete_copies = 1; + egConfirmDialog.open( egCore.strings.CONFIRM_DELETE_COPIES_VOLUMES, egCore.strings.CONFIRM_DELETE_COPIES_VOLUMES_MESSAGE, @@ -876,7 +879,7 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e egCore.net.request( 'open-ils.cat', 'open-ils.cat.asset.volume.fleshed.batch.update.override', - egCore.auth.token(), cnList, 1, {} + egCore.auth.token(), cnList, 1, flags ).then(function(update_count) { $scope.holdingsGridDataProvider.refresh(); });