look at the master DB for brand new hold objects
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 10 Jan 2007 00:27:24 +0000 (00:27 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 10 Jan 2007 00:27:24 +0000 (00:27 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@6750 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm

index 7944f7f..0a93498 100644 (file)
@@ -687,7 +687,9 @@ sub new_hold_copy_targeter {
 
        try {
                if ($one_hold) {
+                       $self->method_lookup('open-ils.storage.transaction.begin')->run( $client );
                        $holds = [ action::hold_request->search_where( { id => $one_hold, fulfillment_time => undef, cancel_time => undef } ) ];
+                       $self->method_lookup('open-ils.storage.transaction.rollback')->run;
                } elsif ( $check_expire ) {
 
                        # what's the retarget time threashold?