sanity checking the hold request
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 17 Jul 2006 13:08:11 +0000 (13:08 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 17 Jul 2006 13:08:11 +0000 (13:08 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5034 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Actor.pm

index 08bf36a..3e98d46 100644 (file)
@@ -1637,7 +1637,7 @@ sub hold_request_count {
 
        my @ready;
        for my $h (@$holds) {
-               next unless $h->capture_time;
+               next unless $h->capture_time and $h->current_copy;
 
                my $copy = $apputils->simple_scalar_request(
                        "open-ils.cstore",