ws_ou may be null in an opac context, fall back to home org
authorBill Erickson <berick@esilibrary.com>
Wed, 9 Feb 2011 19:19:26 +0000 (14:19 -0500)
committerBill Erickson <berick@esilibrary.com>
Wed, 9 Feb 2011 19:19:26 +0000 (14:19 -0500)
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm

index 3da2634..d1ec5e0 100644 (file)
@@ -139,7 +139,7 @@ sub make_payments {
     my $cc_args = $payments->{cc_args};
     my $check_number = $payments->{check_number};
     my $total_paid = 0;
-    my $this_ou = $e->requestor->ws_ou;
+    my $this_ou = $e->requestor->ws_ou || $e->requestor->home_ou;
     my %orgs;
 
     # unless/until determined by payment processor API