[open-ils-commits] r11885 - trunk/Open-ILS/src/perlmods/OpenILS/Application/Circ
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Jan 20 12:42:27 EST 2009
Author: erickson
Date: 2009-01-20 12:42:24 -0500 (Tue, 20 Jan 2009)
New Revision: 11885
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/Application/Circ/ScriptBuilder.pm
Log:
replace call to Actor.pm function with local code so that loading the open-ils.actor app does not happen as a side-effect to using scriptbuilder
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Circ/ScriptBuilder.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Circ/ScriptBuilder.pm 2009-01-20 14:51:34 UTC (rev 11884)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Circ/ScriptBuilder.pm 2009-01-20 17:42:24 UTC (rev 11885)
@@ -3,7 +3,6 @@
use OpenILS::Utils::ScriptRunner;
use OpenILS::Utils::CStoreEditor qw/:funcs/;
use OpenILS::Application::AppUtils;
-use OpenILS::Application::Actor;
use OpenSRF::Utils::Logger qw/$logger/;
use OpenILS::Application::Circ::Holds;
use DateTime::Format::ISO8601;
@@ -203,8 +202,7 @@
$ctx->{requestor} = $ctx->{requestor} || $e->requestor;
if( $ctx->{fetch_patron_circ_info} ) {
- my $circ_counts =
- OpenILS::Application::Actor::_checked_out(1, $e, $patron->id);
+ my $circ_counts = $U->storagereq('open-ils.storage.actor.user.checked_out.count', $patron->id);
$ctx->{patronOverdue} = $circ_counts->{overdue} + $circ_counts->{long_overdue};
my $out = $ctx->{patronOverdue} + $circ_counts->{out};
More information about the open-ils-commits
mailing list