[Rt-commit] rt branch, master, updated. rt-4.2.12-504-gff02eb0

Shawn Moore shawn at bestpractical.com
Mon Nov 2 17:48:28 EST 2015


The branch, master has been updated
       via  ff02eb09e1ded53fd8f1984ea852f131a4517c48 (commit)
      from  de008300f74f2f73b023e3c7f6310ce655adb1e8 (commit)

Summary of changes:
 sbin/rt-setup-database.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit ff02eb09e1ded53fd8f1984ea852f131a4517c48
Author: Shawn M Moore <shawn at bestpractical.com>
Date:   Mon Nov 2 22:47:58 2015 +0000

    Pass a new dbh to _TableNames
    
        This $RT::Handle isn't fully initialized yet

diff --git a/sbin/rt-setup-database.in b/sbin/rt-setup-database.in
index 2b8a49b..1ec3c4a 100644
--- a/sbin/rt-setup-database.in
+++ b/sbin/rt-setup-database.in
@@ -353,7 +353,7 @@ sub action_insert {
     my %args = @_;
     unless ($RAN_INIT) {
         $RT::Handle = RT::Handle->new;
-        my $has_custom_roles = grep { lc($_) eq 'customroles' } $RT::Handle->_TableNames;
+        my $has_custom_roles = grep { lc($_) eq 'customroles' } $RT::Handle->_TableNames(get_admin_dbh());
         RT::Init(SkipCustomRoles => !$has_custom_roles);
         $RAN_INIT++;
     }

-----------------------------------------------------------------------


More information about the rt-commit mailing list