X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/6b23fb212fb1cee6e1034601d3ceb22a182e50f0..2ecfde54bd40a15f430010faa28ec81383e4eec6:/SL/AP.pm 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(); }