From 657b9f1f41a43caead8e9c06d29ad6b2325c7a96 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 26 Aug 2016 20:13:56 -0400 Subject: [PATCH] check full org path of circ lib when deciding whether to suppress a copy alert This allows for a system to suppress alerts of a given type on behalf of all of its branches. Signed-off-by: Galen Charlton --- Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm index d2d90c72e9..806ed1d2c3 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm @@ -658,7 +658,7 @@ sub filter_user_copy_alerts { if(my $alerts = $self->user_copy_alerts) { - my $suppress_orgs = $U->get_org_descendants($self->circ_lib); + my $suppress_orgs = $U->get_org_full_path($self->circ_lib); my $suppressions = $e->search_actor_copy_alert_suppress( {org => $suppress_orgs} ); -- 2.11.0