[freeside-commits] branch FREESIDE_3_BRANCH updated. eb6536b41456955fc425dba2e156a996e8fe2837
Mark Wells
mark at 420.am
Fri Jun 12 17:32:19 PDT 2015
The branch, FREESIDE_3_BRANCH has been updated
via eb6536b41456955fc425dba2e156a996e8fe2837 (commit)
from 76d2bd33f0b9dd003457fc40c97f253ce1aaf5d1 (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 eb6536b41456955fc425dba2e156a996e8fe2837
Author: Mark Wells <mark at freeside.biz>
Date: Fri Jun 12 17:32:07 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