backporting r13944 in support of booking functionality (and general correctness)
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 18 Jan 2010 17:10:06 +0000 (17:10 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 18 Jan 2010 17:10:06 +0000 (17:10 +0000)
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

index 782b085..63aa193 100644 (file)
@@ -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;
 }
 
 # -----------------------------------------------------------------------------