check full org path of circ lib when deciding whether to suppress a copy alert
authorGalen Charlton <gmc@esilibrary.com>
Sat, 27 Aug 2016 00:13:56 +0000 (20:13 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 27 Mar 2017 20:23:28 +0000 (16:23 -0400)
This allows for a system to suppress alerts of a given type on behalf
of all of its branches.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm

index 73a24ab..1106cca 100644 (file)
@@ -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}
         );