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 <cesar.velez@equinoxinitiative.org>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
{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);
});