ensure that suppressed system alerts do not set next_status
authorGalen Charlton <gmc@esilibrary.com>
Fri, 2 Sep 2016 19:56:45 +0000 (15:56 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 27 Mar 2017 20:28:47 +0000 (16:28 -0400)
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm

index a8ada77..e7e6129 100644 (file)
@@ -802,7 +802,8 @@ sub generate_system_copy_alerts {
     my %auto_override_conditions = ();
     foreach my $t (@final_types) {
         $t->next_status([$U->unique_unnested_numbers($t->next_status)])
-            if ($t->next_status);
+            if ($t->next_status) &&
+               !(grep {$t->id} @$suppressions);
 
         my $alert = new Fieldmapper::asset::copy_alert ();
         $alert->alert_type($t->id);