From: Galen Charlton Date: Sat, 27 Aug 2016 00:13:56 +0000 (-0400) Subject: check full org path of circ lib when deciding whether to suppress a copy alert X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0a0015230170500a11a48d25daeb5932eed0a4d9;p=working%2FEvergreen.git 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 Signed-off-by: Galen Charlton --- 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 fa760c809a..d44123cf4b 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm @@ -668,7 +668,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} );