[freeside-commits] branch FREESIDE_4_BRANCH updated. e797703f8c893db9da8c003e41986a31cb576bcc

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


The branch, FREESIDE_4_BRANCH has been updated
       via  e797703f8c893db9da8c003e41986a31cb576bcc (commit)
      from  747af1b66a1e25325ee610c6f3a82441bddcd711 (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 e797703f8c893db9da8c003e41986a31cb576bcc
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Tue Jun 7 01:14:50 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