From: Bill Erickson Date: Thu, 16 Jul 2020 18:27:34 +0000 (-0400) Subject: LP1865564 Clear holds cache after Request Items X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3044d373de86fcf058f77bd7c861f7010e5e8d5f;p=evergreen%2Fpines.git LP1865564 Clear holds cache after Request Items When staff place holds on a record within the Holdings View via the Request Items function, reset the holds grid data so it bypasses the cache and refetches the holds, including the new holds. Signed-off-by: Bill Erickson Signed-off-by: Michele Morgan Signed-off-by: Galen Charlton --- 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 809ffeaa94..414f3ea03a 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 @@ -1004,9 +1004,10 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e 'open-ils.circ', 'open-ils.circ.holds.test_and_create.batch.override', egCore.auth.token(), args, h.copy_list - ); - - $uibModalInstance.close(); + ).then(function() { + holds = []; // force the holds grid to refetch data. + $uibModalInstance.close(); + }); } $scope.cancel = function($event) {