[open-ils-commits] r12452 - trunk/Open-ILS/src/perlmods/OpenILS/Application/Trigger (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Mar 6 15:44:20 EST 2009


Author: erickson
Date: 2009-03-06 15:44:16 -0500 (Fri, 06 Mar 2009)
New Revision: 12452

Modified:
   trunk/Open-ILS/src/perlmods/OpenILS/Application/Trigger/Reactor.pm
Log:
copy_price expects an editor, pass one in

Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Trigger/Reactor.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Trigger/Reactor.pm	2009-03-06 20:43:56 UTC (rev 12451)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Trigger/Reactor.pm	2009-03-06 20:44:16 UTC (rev 12452)
@@ -6,6 +6,7 @@
 use OpenSRF::Utils qw/:datetime/;
 use OpenSRF::Utils::Logger qw(:logger);
 use OpenILS::Application::AppUtils;
+use OpenILS::Utils::CStoreEditor qw/:funcs/;
 my $U = 'OpenILS::Application::AppUtils';
 
 sub fourty_two { return 42 }
@@ -51,7 +52,7 @@
     # returns the calculated copy price
     get_copy_price => sub {
         my $copy_id = shift;
-        return $U->get_copy_price($copy_id);
+        return $U->get_copy_price(new_editor(), $copy_id);
     },
 
     # returns the org unit setting value



More information about the open-ils-commits mailing list