[open-ils-commits] r19480 - trunk/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Feb 18 09:35:08 EST 2011
Author: erickson
Date: 2011-02-18 09:35:06 -0500 (Fri, 18 Feb 2011)
New Revision: 19480
Modified:
trunk/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm
Log:
ws_ou may be null in an opac context, fall back to home org
Modified: trunk/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm 2011-02-18 14:35:05 UTC (rev 19479)
+++ trunk/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm 2011-02-18 14:35:06 UTC (rev 19480)
@@ -139,7 +139,7 @@
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
More information about the open-ils-commits
mailing list