[freeside-commits] branch FREESIDE_3_BRANCH updated. d3ab0ad3790e23c21b0e7afff6496bbc17f0b24a
Ivan
ivan at 420.am
Tue Jun 7 01:15:00 PDT 2016
The branch, FREESIDE_3_BRANCH has been updated
via d3ab0ad3790e23c21b0e7afff6496bbc17f0b24a (commit)
from 6ca906f764454a8377c63ff6170da1e0a0202fd2 (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 d3ab0ad3790e23c21b0e7afff6496bbc17f0b24a
Author: Ivan Kohler <ivan at freeside.biz>
Date: Tue Jun 7 01:14:59 2016 -0700
log with a separate db connection
diff --git a/FS/FS/access_user_log.pm b/FS/FS/access_user_log.pm
index 9e7f7a0..ea7af8d 100644
--- a/FS/FS/access_user_log.pm
+++ b/FS/FS/access_user_log.pm
@@ -2,6 +2,7 @@ package FS::access_user_log;
use base qw( FS::Record );
use strict;
+use FS::UID qw( dbh );
#use FS::Record qw( qsearch qsearchs );
use FS::CurrentUser;
@@ -83,6 +84,11 @@ sub insert_new_path {
'_date' => time,
} );
+ #so we can still log pages after a transaction-aborting SQL error (and then
+ # show the # error page)
+ local($FS::UID::dbh) = dbh->clone;
+ #if current transaction is aborted (if we had a way to check for it)
+
my $error = $self->insert;
die $error if $error;
-----------------------------------------------------------------------
Summary of changes:
FS/FS/access_user_log.pm | 6 ++++++
1 file changed, 6 insertions(+)
More information about the freeside-commits
mailing list