From: miker Date: Tue, 13 Feb 2007 22:01:43 +0000 (+0000) Subject: remove "current copy" when no copies exist at all X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=42bb5bce74583ff3c0711916ad17193237aa40b1;p=Evergreen.git remove "current copy" when no copies exist at all git-svn-id: svn://svn.open-ils.org/ILS/trunk@6951 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm index 41ecf06abc..8e52c60994 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm @@ -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"; }