From: Moritz Bunkus Date: Thu, 5 Jul 2007 09:30:33 +0000 (+0000) Subject: $form->get_standard_dbh() benutzen für verbesserte Geschwindigkeit X-Git-Tag: release-2.4.3^2~43 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5b5a8e417ddbbf0dd7ca6027d9cff5cc38e409f5;p=kivitendo-erp.git $form->get_standard_dbh() benutzen für verbesserte Geschwindigkeit --- diff --git a/SL/IC.pm b/SL/IC.pm index e7f1327e4..f69e98ce2 100644 --- a/SL/IC.pm +++ b/SL/IC.pm @@ -1538,7 +1538,7 @@ sub retrieve_accounts { $form->{"taxzone_id"} *= 1; - $dbh = $form->dbconnect($myconfig); + $dbh = $form->get_standard_dbh($myconfig); my $transdate = ""; if ($form->{type} eq "invoice") { @@ -1576,10 +1576,7 @@ sub retrieve_accounts { qq|WHERE p.id = ?|; my $ref = selectfirst_hashref_query($form, $dbh, $query, $parts_id); - if (!$ref) { - $dbh->disconnect(); - return $main::lxdebug->leave_sub(2); - } + return $main::lxdebug->leave_sub(2) if (!$ref); $ref->{"inventory_accno_id"} = undef unless ($ref->{"is_part"});