capture the context org parameter for penalty generation.
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 12 Oct 2009 05:07:51 +0000 (05:07 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 12 Oct 2009 05:07:51 +0000 (05:07 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@14347 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 753871c..48a893e 100644 (file)
@@ -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
 }