[freeside-commits] branch master updated. 74d59a7146046e54da2b37435cca8937b66093cd

Mark Wells mark at 420.am
Fri Jun 12 17:59:22 PDT 2015


The branch, master has been updated
       via  74d59a7146046e54da2b37435cca8937b66093cd (commit)
      from  f303acf0bfdbd5debea67d391e111ae4ee62cb78 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 74d59a7146046e54da2b37435cca8937b66093cd
Author: Mark Wells <mark at freeside.biz>
Date:   Fri Jun 12 17:31:29 2015 -0700

    fix autocommit in part_pkg_link->insert/delete, #36784

diff --git a/FS/FS/part_pkg_link.pm b/FS/FS/part_pkg_link.pm
index 8e43d15..ce071ef 100644
--- a/FS/FS/part_pkg_link.pm
+++ b/FS/FS/part_pkg_link.pm
@@ -130,6 +130,7 @@ sub insert {
     return $error if $error;
   }
 
+  $dbh->commit if $oldAutoCommit;
   return;
 }
 
@@ -166,7 +167,7 @@ sub delete {
     $dbh->rollback if $oldAutoCommit;
     return $error;
   }
-  $dbh->commit;
+  $dbh->commit if $oldAutoCommit;
   return;
 }
 

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/part_pkg_link.pm |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)




More information about the freeside-commits mailing list