[freeside-commits] branch master updated. 9539d3f490cba4738a40025fcd241d1cb2372ad9

Ivan ivan at 420.am
Tue Jun 7 01:14:49 PDT 2016


The branch, master has been updated
       via  9539d3f490cba4738a40025fcd241d1cb2372ad9 (commit)
      from  a1d1dc9edcb57c0295689203de577c670f947b60 (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 9539d3f490cba4738a40025fcd241d1cb2372ad9
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Tue Jun 7 01:14:49 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 15437b7..563f3ce 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;
 
@@ -85,6 +86,11 @@ sub insert_new_path {
     'render_seconds' => $render_seconds,
   } );
 
+  #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