[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[6426] branches/1.3/scripts/setup.pl



Revision: 6426
          http://sourceforge.net/p/ledger-smb/code/6426
Author:   einhverfr
Date:     2014-01-08 13:47:39 +0000 (Wed, 08 Jan 2014)
Log Message:
-----------
Correcting errors when some addons are installed, that setup.pl errors after adding user.

Modified Paths:
--------------
    branches/1.3/scripts/setup.pl

Modified: branches/1.3/scripts/setup.pl
===================================================================
--- branches/1.3/scripts/setup.pl	2014-01-08 13:25:46 UTC (rev 6425)
+++ branches/1.3/scripts/setup.pl	2014-01-08 13:47:39 UTC (rev 6426)
@@ -21,6 +21,7 @@
 use Locale::Country;
 use LedgerSMB::Auth;
 use LedgerSMB::Database;
+use LedgerSMB::App_State;
 use strict;
 
 my $logger = Log::Log4perl->get_logger('LedgerSMB::Scripts::setup');
@@ -835,6 +836,7 @@
     $request->{dbh} = DBI->connect("dbi:Pg:dbname=$request->{database}",
                                    $creds->{login},
                                    $creds->{password});
+    $LedgerSMB::App_State::DBH = $request->{dbh};
     my $user = LedgerSMB::DBObject::Admin->new({base => $request});
     if (8 == $user->save_user){ # Told not to import but user exists in db
         $request->{notice} = $request->{_locale}->text(

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits