From 83d3b315f0fc6acef3bbba1c86b1b2dcf28826d6 Mon Sep 17 00:00:00 2001 From: miker Date: Mon, 18 Jan 2010 17:10:06 +0000 Subject: [PATCH] backporting r13944 in support of booking functionality (and general correctness) git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6@15334 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm b/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm index 782b085001..63aa193c38 100644 --- a/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm +++ b/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm @@ -302,13 +302,14 @@ sub disconnect { # ----------------------------------------------------------------------------- # commits the db session and destroys the session +# returns the status of the commit call # ----------------------------------------------------------------------------- sub commit { my $self = shift; return unless $self->{xact_id}; - $self->xact_commit; - $self->session->disconnect; - $self->{session} = undef; + my $stat = $self->xact_commit; + $self->disconnect; + return $stat; } # ----------------------------------------------------------------------------- -- 2.11.0