From 00bdbf1333b6f2e265318ae39d42acf215a0e9a3 Mon Sep 17 00:00:00 2001 From: Cesar Velez Date: Mon, 26 Jun 2017 12:25:06 -0400 Subject: [PATCH] LP#1669907: Web Staff Bib record Holds View dups In the webstaff client, switching from the View Holds tab to the OPAC View and back would result in the list of hold requests getting duplicated. This patch fixes the problem. Caching of tab data is explicitly not being done ATM, so this takes care of the issue for now. Signed-off-by: Cesar Velez Signed-off-by: Terran McCanna Signed-off-by: Galen Charlton --- Open-ILS/web/js/ui/default/staff/cat/catalog/app.js | 1 + 1 file changed, 1 insertion(+) 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 1f1ac58691..27eb25f1a4 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 @@ -1512,6 +1512,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); }); -- 2.11.0