added 'return_patron' option on renewals to return the patron object in the final...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 21 Oct 2009 14:44:17 +0000 (14:44 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 21 Oct 2009 14:44:17 +0000 (14:44 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@14525 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 5c23a92..256dd0c 100644 (file)
@@ -406,6 +406,7 @@ my @AUTOLOAD_FIELDS = qw/
     noop
     void_overdues
     parent_circ
+    return_patron
 /;
 
 
@@ -1247,7 +1248,8 @@ sub do_checkout {
                 holds_fulfilled  => $self->fulfilled_holds,
                 deposit_billing  => $self->deposit_billing,
                 rental_billing   => $self->rental_billing,
-                parent_circ      => $pcirc
+                parent_circ      => $pcirc,
+                patron           => ($self->return_patron) ? $self->patron : undef
             }
         )
     );