copy_price expects an editor, pass one in
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 6 Mar 2009 20:44:16 +0000 (20:44 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 6 Mar 2009 20:44:16 +0000 (20:44 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@12452 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Trigger/Reactor.pm

index f0adce8..7bacf78 100644 (file)
@@ -6,6 +6,7 @@ use DateTime::Format::ISO8601;
 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 @@ my $_TT_helpers = {
     # 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