[open-ils-commits] r12956 - trunk/Open-ILS/src/perlmods/OpenILS/Utils (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Apr 22 09:03:31 EDT 2009
Author: erickson
Date: 2009-04-22 09:03:30 -0400 (Wed, 22 Apr 2009)
New Revision: 12956
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/Utils/Penalty.pm
Log:
$pen is an object in this case, not a hash
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Utils/Penalty.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Utils/Penalty.pm 2009-04-22 03:26:53 UTC (rev 12955)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Utils/Penalty.pm 2009-04-22 13:03:30 UTC (rev 12956)
@@ -45,17 +45,17 @@
} else {
$e->create_actor_user_standing_penalty($pen) or return $e->die_event;
- my $csp_obj = $csp{$pen->{standing_penalty}} ||
- $e->retrieve_config_standing_penalty( $pen->{standing_penalty} );
+ my $csp_obj = $csp{$pen->standing_penalty} ||
+ $e->retrieve_config_standing_penalty( $pen->standing_penalty );
# cache for later
- $csp{$pen->{standing_penalty}} = $csp_obj;
+ $csp{$pen->standing_penalty} = $csp_obj;
$ses->request(
'open-ils.trigger.event.autocreate',
'penalty.' . $csp_obj->name,
$user,
- $pen->{org_unit}
+ $pen->org_unit
);
}
}
More information about the open-ils-commits
mailing list