From d621a2ab7d8887b451963a0aea99325b3ba89169 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 bc8952f699..cb46edbeff 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 @@ -996,9 +996,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