From: Sven Schöling Date: Thu, 8 Sep 2016 14:48:14 +0000 (+0200) Subject: AP: single-dbh disconnects X-Git-Tag: release-3.5.4~2055 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=4f44fd6b4fb34349a74614f6b68a878cc2e2bf27;p=kivitendo-erp.git AP: single-dbh disconnects --- diff --git a/SL/AP.pm b/SL/AP.pm index 6de1b158b..5839fb563 100644 --- a/SL/AP.pm +++ b/SL/AP.pm @@ -565,7 +565,7 @@ sub get_transdate { my ($self, $myconfig, $form) = @_; # connect to database - my $dbh = $form->dbconnect($myconfig); + my $dbh = SL::DB->client->dbh; my $query = "SELECT COALESCE(" . @@ -574,8 +574,6 @@ sub get_transdate { " current_date)"; ($form->{transdate}) = $dbh->selectrow_array($query); - $dbh->disconnect; - $main::lxdebug->leave_sub(); }