fixed field name for hold_type
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 14 Dec 2006 14:10:21 +0000 (14:10 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 14 Dec 2006 14:10:21 +0000 (14:10 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_0@6703 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index b722c8d..d9d2f83 100644 (file)
@@ -1084,7 +1084,7 @@ sub find_nearest_permitted_hold {
        );
 
        # hold->type "R" means we need this copy
-       for my $h (@$old_holds) { return ($h) if $h->type eq 'R'; }
+       for my $h (@$old_holds) { return ($h) if $h->hold_type eq 'R'; }
 
        $logger->info("circulator: searching for best hold at org ".$user->ws_ou." and copy $bc");