From: Bill Erickson Date: Wed, 9 Feb 2011 19:19:26 +0000 (-0500) Subject: ws_ou may be null in an opac context, fall back to home org X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=14c4931b14090f2dda0c54ab1503ac91b0ab3de8;p=evergreen%2Fequinox.git ws_ou may be null in an opac context, fall back to home org --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm index 3da2634852..d1ec5e0300 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm @@ -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