logic bug from constants switch
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 6 Aug 2006 15:40:02 +0000 (15:40 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 6 Aug 2006 15:40:02 +0000 (15:40 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5320 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm

index 86d3a10..810923b 100644 (file)
@@ -868,11 +868,11 @@ sub fetch_captured_holds {
        );
 
        my @res;
-       my $stat = OILS_COPY_STATUS_ON_HOLDS_SHELF;
        for my $h (@$holds) {
                my $copy = $e->retrieve_asset_copy($h->current_copy)
                        or return $e->event;
-               push( @res, $h ) if $copy->status == $stat->id; # eventually, push IDs here
+               push( @res, $h ) if 
+                       $copy->status == OILS_COPY_STATUS_ON_HOLDS_SHELF;
        }
 
        return \@res;