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=d621a2ab7d8887b451963a0aea99325b3ba89169;p=working%2FEvergreen.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 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) {