From d52156c03879971ba075c7e758820ab16c838c61 Mon Sep 17 00:00:00 2001 From: erickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4> Date: Mon, 21 Dec 2009 19:38:18 +0000 Subject: [PATCH] when an open circ exists during checkout, go ahead and return the copy in the event payload 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm b/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm index 053a216c4e..14ff233792 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm @@ -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 -- 2.11.0