From: Sven Schöling Date: Wed, 29 Jun 2016 14:43:54 +0000 (+0200) Subject: Nur noch ein DB-Hanlde pro Request zum Client aufmachen X-Git-Tag: release-3.5.4~2111 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5a08d9e4f939817c47f8f274b6e562782edd5179;p=kivitendo-erp.git Nur noch ein DB-Hanlde pro Request zum Client aufmachen --- diff --git a/SL/DB.pm b/SL/DB.pm index f133e6af6..f12584754 100644 --- a/SL/DB.pm +++ b/SL/DB.pm @@ -34,6 +34,14 @@ sub create { return $db; } +sub client { + create(undef, 'KIVITENDO'); +} + +sub auth { + create(undef, 'KIVITENDO_AUTH'); +} + sub _register_db { my $domain = shift; my $type = shift; diff --git a/SL/Form.pm b/SL/Form.pm index fb5dffe9b..64d09d124 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -1436,7 +1436,7 @@ sub get_standard_dbh { undef $standard_dbh; } - $standard_dbh ||= $self->dbconnect_noauto($myconfig); + $standard_dbh ||= SL::DB->create(undef, 'KIVITENDO')->dbh; $main::lxdebug->leave_sub(2);