no need to fetch patron on item checkin
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 11 Aug 2008 17:05:16 +0000 (17:05 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 11 Aug 2008 17:05:16 +0000 (17:05 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@10334 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 8cefede..5ff9ca7 100644 (file)
@@ -521,14 +521,14 @@ sub mk_env {
         }
     }
 
+    return undef if $self->is_checkin;
 
     # --------------------------------------------------------------------------
     # Grab the patron
     # --------------------------------------------------------------------------
     my $patron;
-    my $p_evt;
        if( $self->patron_id ) {
-               $patron = $e->retrieve_actor_user($self->patron_id) or $p_evt = $e->event;
+               $patron = $e->retrieve_actor_user($self->patron_id) or return $e->event;
 
        } elsif( $self->patron_barcode ) {