[open-ils-commits] r11285 - trunk/Open-ILS/src/perlmods/OpenILS/Utils
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Nov 20 12:49:05 EST 2008
Author: erickson
Date: 2008-11-20 12:49:01 -0500 (Thu, 20 Nov 2008)
New Revision: 11285
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/Utils/Penalty.pm
Log:
oops, referencing wrong object
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Utils/Penalty.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Utils/Penalty.pm 2008-11-20 17:38:19 UTC (rev 11284)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Utils/Penalty.pm 2008-11-20 17:49:01 UTC (rev 11285)
@@ -109,13 +109,17 @@
# into the fatal_penalties set. Others will be sorted into the info_penalties set
sub retrieve_penalties {
my($class, $e, $user_id, @fatal_mask) = @_;
- my $penalties = $e->search_actor_user_standing_penalty({usr => $user_id});
+ my $penalties = $e->search_actor_user_standing_penalty([
+ {usr => $user_id},
+ {flesh => 1, flesh_fields => {ausp => ['standing_penalty']}}
+ ]);
+
my(@info, @fatal);
for my $p (@$penalties) {
my $pushed = 0;
- if($p->block_list) {
+ if($p->standing_penalty->block_list) {
for my $m (@fatal_mask) {
- if($p->block_list =~ /$m/) {
+ if($p->standing_penalty->block_list =~ /$m/) {
push(@fatal, $p->name);
$pushed = 1;
}
More information about the open-ils-commits
mailing list