From 3119cd4d6189b2109f4ab086a8d3cb903bf3d32d 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 --- 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 c24bf375ce..6352e1fc6e 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.11.0