From b2ec4358ffd9cc58fb8df4a681f25a20a239ec09 Mon Sep 17 00:00:00 2001 From: miker Date: Tue, 5 Sep 2006 05:31:38 +0000 Subject: [PATCH] set prev_check_time to midnight of today when there are 0 eligible copies git-svn-id: svn://svn.open-ils.org/ILS/trunk@5948 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm | 4 ++++ 1 file changed, 4 insertions(+) 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 87824b3288..b1961f103a 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm @@ -755,6 +755,9 @@ sub new_hold_copy_targeter { $log->info("\tNo copies available for targeting at all!\n"); $self->method_lookup('open-ils.storage.transaction.commit')->run; push @successes, { hold => $hold->id, eligible_copies => 0, error => 'NO_COPIES' }; + + $hold->update( { prev_check_time => 'today' } ); + $self->method_lookup('open-ils.storage.transaction.commit')->run; die 'OK'; } @@ -808,6 +811,7 @@ sub new_hold_copy_targeter { push @good_copies, $old_best; } else { $log->debug("\tcurrent_copy is no longer available for targeting... NEXT HOLD, PLEASE!"); + $hold->update( { prev_check_time => 'today' } ); $self->method_lookup('open-ils.storage.transaction.commit')->run; push @successes, { hold => $hold->id, eligible_copies => 0, error => 'NO_TARGETS' }; die 'OK'; -- 2.11.0