when an open circ exists during checkout, go ahead and return the copy in the event...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 21 Dec 2009 19:38:18 +0000 (19:38 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 21 Dec 2009 19:38:18 +0000 (19:38 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@15210 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 053a216..14ff233 100644 (file)
@@ -829,11 +829,11 @@ sub do_copy_checks {
 
         if(my $old_circ = $circs->[0]) { # an open circ was found
 
-            my $payload; # event payload
+            my $payload = {copy => $copy};
 
             if($old_circ->usr == $self->patron->id) {
                 
-                $payload = {old_circ => $old_circ};
+                $payload->{old_circ} = $old_circ;
 
                 # If there is an open circulation on the checkout item and an auto-renew 
                 # interval is defined, inform the caller that they should go