From fddda7e87aea7b7a122f513452e6c7b9192802f9 Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 24 Sep 2010 23:04:45 +0000 Subject: [PATCH] more transaction cleanups git-svn-id: svn://svn.open-ils.org/ILS/trunk@17980 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/Booking.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Booking.pm b/Open-ILS/src/perlmods/OpenILS/Application/Booking.pm index ff9572ac79..5e75fa840d 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Booking.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Booking.pm @@ -1291,12 +1291,13 @@ sub get_bresv_by_returnable_resource_barcode { }) or return $e->die_event; if (@$rows < 1) { + $e->rollback; return $rows; } else { # More than one result might be possible, but we don't want to return # more than one at this time. my $id = $rows->[0]->{"id"}; - return $e->retrieve_booking_reservation([ + my $resp =$e->retrieve_booking_reservation([ $id, { "flesh" => 2, "flesh_fields" => { @@ -1305,6 +1306,8 @@ sub get_bresv_by_returnable_resource_barcode { } } ]) or $e->die_event; + $e->rollback; + return $resp; } } -- 2.11.0