applying hold-capture fix to get the requestor
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 3 May 2007 13:53:12 +0000 (13:53 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 3 May 2007 13:53:12 +0000 (13:53 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_0_5@7192 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 9d37096..8a7e825 100644 (file)
@@ -1214,8 +1214,8 @@ sub verify_copy_for_hold {
        return 1 if OpenILS::Utils::PermitHold::permit_copy_hold(
                {       patron                          => $patron, 
                        requestor                       => $requestor, 
-                       copy                                    => $copy,
-                       title                                   => $title, 
+                       copy                            => $copy,
+                       title                           => $title, 
                        title_descriptor        => $title->fixed_fields, # this is fleshed into the title object
                        pickup_lib                      => $pickup_lib,
                        request_lib                     => $request_lib 
@@ -1282,8 +1282,8 @@ sub find_nearest_permitted_hold {
                # see if this hold is permitted
                my $permitted = OpenILS::Utils::PermitHold::permit_copy_hold(
                        {       patron_id                       => $hold->usr,
-                               requestor                       => $reqr->id,
-                               copy                                    => $copy,
+                               requestor                       => $reqr,
+                               copy                            => $copy,
                                pickup_lib                      => $hold->pickup_lib,
                                request_lib                     => $rlib,
                        }