From: Cesar Velez Date: Mon, 26 Jun 2017 16:25:06 +0000 (-0400) Subject: LP#1669907 - Web Staff Bib record Holds View dups X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c9a34ecb28ffd53a8f0ccdf3f6164371805de3da;p=working%2FEvergreen.git LP#1669907 - Web Staff Bib record Holds View dups Fix duplication issue caused by switching tabs. Caching of tab data is explicitly not being done ATM, so this takes care of the issue for now. Signed-off by: Cesar Velez --- 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 c8471a9c8d..17eb562da1 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 @@ -1513,6 +1513,7 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e {pickup_lib : egCore.org.descendants($scope.pickup_ou.id(), true)} ).then( function(hold_data) { + hold_ids = []; // clear the list of ids, hack to avoid dups angular.forEach(hold_data, function(list, type) { hold_ids = hold_ids.concat(list); });