From: miker Date: Mon, 18 Jan 2010 17:10:06 +0000 (+0000) Subject: backporting r13944 in support of booking functionality (and general correctness) X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=83d3b315f0fc6acef3bbba1c86b1b2dcf28826d6;p=Evergreen.git 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 --- 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; } # -----------------------------------------------------------------------------