responding with copy on COPY_NOT_AVAILABLE instead of just the status
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 31 Jul 2006 19:17:54 +0000 (19:17 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 31 Jul 2006 19:17:54 +0000 (19:17 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5193 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 5f452d5..53e29aa 100644 (file)
@@ -600,7 +600,7 @@ sub run_copy_permit_scripts {
        # in as the payload for that event
        my $stat = ref($copy->status) ? $copy->status->id : $copy->status;
    for (@allevents) {
-      $_->{payload} = $stat if 
+      $_->{payload} = $copy if 
                        ($_->{textcode} eq 'COPY_NOT_AVAILABLE');
    }
 
@@ -1123,6 +1123,7 @@ sub do_checkin {
 
        # handle the overridable events 
        $self->override_events unless $self->is_renewal;
+       return if $self->bail_out;
        
        if( $self->copy ) {
                $self->transit(