adjust OU lookup for suppression of system-generated alerts too
authorGalen Charlton <gmc@esilibrary.com>
Sat, 27 Aug 2016 00:27:09 +0000 (20:27 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 3 Nov 2017 20:05:11 +0000 (16:05 -0400)
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm

index d44123c..2f6f9c2 100644 (file)
@@ -735,7 +735,7 @@ sub generate_system_copy_alerts {
 
     my $e = $self->editor;
 
-    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}
     );