remove "current copy" when no copies exist at all
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 13 Feb 2007 22:01:43 +0000 (22:01 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 13 Feb 2007 22:01:43 +0000 (22:01 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@6951 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 41ecf06..8e52c60 100644 (file)
@@ -838,7 +838,7 @@ sub new_hold_copy_targeter {
                                $log->info("\tNo copies available for targeting at all!\n");
                                push @successes, { hold => $hold->id, eligible_copies => 0, error => 'NO_COPIES' };
 
-                               $hold->update( { prev_check_time => 'today' } );
+                               $hold->update( { prev_check_time => 'today', current_copy => undef } );
                                $self->method_lookup('open-ils.storage.transaction.commit')->run;
                                die "OK\n";
                        }