From: erickson Date: Fri, 18 Feb 2011 14:36:13 +0000 (+0000) 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=f93002e956ffc65d4f47f7dfffe31a044bb6380f;p=evergreen%2Fjoelewis.git ws_ou may be null in an opac context, fall back to home org git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_1@19484 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- 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 38aff4249c..dcf19ccd05 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