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)
committerMike Rylander <mrylander@gmail.com>
Mon, 31 Jul 2017 14:12:51 +0000 (10:12 -0400)
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm

index ce525e3..e6705a8 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);