From 98202944b9d7e33813d3996b6b19028e8f5e8041 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 8 Sep 2016 16:48:25 +0200 Subject: [PATCH] AR: single-dbh disconnects --- SL/AR.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/SL/AR.pm b/SL/AR.pm index 3b795d492..b4b686748 100644 --- a/SL/AR.pm +++ b/SL/AR.pm @@ -657,7 +657,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(" . @@ -666,8 +666,6 @@ sub get_transdate { " current_date)"; ($form->{transdate}) = $dbh->selectrow_array($query); - $dbh->disconnect; - $main::lxdebug->leave_sub(); } -- 2.20.1