pull name from the SP object, not the user_standing_penalty
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 13 Jan 2009 16:43:10 +0000 (16:43 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 13 Jan 2009 16:43:10 +0000 (16:43 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@11811 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Utils/Penalty.pm

index 7009eda..d212afe 100644 (file)
@@ -56,7 +56,7 @@ sub retrieve_penalties {
         if($p->standing_penalty->block_list) {
             for my $m (@fatal_mask) {
                 if($p->standing_penalty->block_list =~ /$m/) {
-                    push(@fatal, $p->name);
+                    push(@fatal, $p->standing_penalty->name);
                     $pushed = 1;
                     last;
                 }