From 3044d373de86fcf058f77bd7c861f7010e5e8d5f Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 16 Jul 2020 14:27:34 -0400 Subject: [PATCH] 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 --- Open-ILS/web/js/ui/default/staff/cat/catalog/app.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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) { -- 2.43.2