[open-ils-commits] r12400 - trunk/Open-ILS/src/perlmods/OpenILS/Application (miker)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Mar 4 10:26:42 EST 2009


Author: miker
Date: 2009-03-04 10:26:40 -0500 (Wed, 04 Mar 2009)
New Revision: 12400

Modified:
   trunk/Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm
Log:
do not look for transaction summaries if there are no transactions

Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm	2009-03-04 15:16:22 UTC (rev 12399)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm	2009-03-04 15:26:40 UTC (rev 12400)
@@ -1175,6 +1175,7 @@
 	my $self = shift;
     my $e = shift;
 	my @xacts = @_;
+	return () if (!@xacts);
     return @{$e->search_money_billable_transaction_summary({id => [ map { $_->id } @xacts ]})};
 }
 		



More information about the open-ils-commits mailing list