[open-ils-commits] r19484 - branches/rel_2_1/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:36:14 EST 2011


Author: erickson
Date: 2011-02-18 09:36:13 -0500 (Fri, 18 Feb 2011)
New Revision: 19484

Modified:
   branches/rel_2_1/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: branches/rel_2_1/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm
===================================================================
--- branches/rel_2_1/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm	2011-02-18 14:36:12 UTC (rev 19483)
+++ branches/rel_2_1/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm	2011-02-18 14:36:13 UTC (rev 19484)
@@ -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