From: miker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Mon, 12 Oct 2009 05:10:04 +0000 (+0000)
Subject: forward-porting r14346: pass the patron id (instead of the object) and the appropriat... 
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6934fbebe413aeb3f7209786a2aa444708211758;p=evergreen%2Fmasslnc.git

forward-porting r14346: pass the patron id (instead of the object) and the appropriate context org to the penalty calculator

git-svn-id: svn://svn.open-ils.org/ILS/trunk@14353 dcc99617-32d9-48b4-a31d-7c20da2025e4
---

diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm
index 0d28e6a6f4..b95a52806b 100644
--- a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm
+++ b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm
@@ -775,7 +775,8 @@ sub generate_fines {
 
 				$penalty->request(
 				    'open-ils.penalty.patron_penalty.calculate',
-				    { patron	=> $c->usr->to_fieldmapper,
+				    { patronid	=> ''.$c->usr,
+				    context_org	=> ''.$c->circ_lib,
 				    update	=> 1,
 				    background	=> 1,
 				    }