[freeside-commits] branch FREESIDE_2_3_BRANCH updated. 63392290c6036b94622e770ba88f2275d6e4e5cf
Ivan
ivan at 420.am
Tue Aug 28 01:20:15 PDT 2012
The branch, FREESIDE_2_3_BRANCH has been updated
via 63392290c6036b94622e770ba88f2275d6e4e5cf (commit)
from 1b6a5f4347ffe0213e3642f5fb741b8b32cfa456 (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 63392290c6036b94622e770ba88f2275d6e4e5cf
Author: Ivan Kohler <ivan at freeside.biz>
Date: Tue Aug 28 01:20:14 2012 -0700
prevent the "prepared statement "dbdpg_pN_N" already exists" errors that result in "Cant call method "HasRight" on an undefined value" errors, RT#19104
diff --git a/htetc/handler.pl b/htetc/handler.pl
index d7c5657..3c68e83 100644
--- a/htetc/handler.pl
+++ b/htetc/handler.pl
@@ -8,10 +8,19 @@ use FS::Mason qw( mason_interps );
use FS::Trace;
if ( %%%RT_ENABLED%%% ) {
+
require RT;
+
$> = scalar(getpwnam('freeside'));
+
RT::LoadConfig();
RT::Init();
+
+ # disconnect DB before fork:
+ # (avoid 'prepared statement "dbdpg_p\d+_\d+" already exists' errors?)
+ $RT::Handle->dbh(undef);
+ undef $RT::Handle;
+
$> = $<;
}
-----------------------------------------------------------------------
Summary of changes:
htetc/handler.pl | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
More information about the freeside-commits
mailing list