From: erickson Date: Mon, 12 Oct 2009 05:07:51 +0000 (+0000) Subject: capture the context org parameter for penalty generation. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=81281f444d78c9da17528527aabddc89c337dfdc;p=evergreen%2Fbjwebb.git capture the context org parameter for penalty generation. git-svn-id: svn://svn.open-ils.org/ILS/trunk@14347 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Penalty.pm b/Open-ILS/src/perlmods/OpenILS/Application/Penalty.pm index 753871cdb..48a893e48 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Penalty.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Penalty.pm @@ -31,8 +31,8 @@ sub patron_penalty { my( $self, $conn, $args ) = @_; $conn->respond_complete(1) if $$args{background}; my $e = new_editor(xact => 1); - OpenILS::Utils::Penalty->calculate_penalties($e, $args->{patronid}); - my $p = OpenILS::Utils::Penalty->retrieve_penalties($e, $args->{patronid}); + OpenILS::Utils::Penalty->calculate_penalties($e, $args->{patronid}, $args->{context_org}); + my $p = OpenILS::Utils::Penalty->retrieve_penalties($e, $args->{patronid}, $args->{context_org}); $e->commit; return $p }