From: Sven Schöling Date: Mon, 23 May 2011 10:57:57 +0000 (+0200) Subject: Restliche dbconnects in OE entfernt. X-Git-Tag: release-2.6.3~25^2~14 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=76a25c8c3358c474c68fa3dbb777c51479c8e496;p=kivitendo-erp.git Restliche dbconnects in OE entfernt. --- diff --git a/SL/OE.pm b/SL/OE.pm index 7a35fa717..0fd91a437 100644 --- a/SL/OE.pm +++ b/SL/OE.pm @@ -52,7 +52,7 @@ sub transactions { my ($self, $myconfig, $form) = @_; # connect to database - my $dbh = $form->dbconnect($myconfig); + my $dbh = $form->get_standard_dbh; my $query; my $ordnumber = 'ordnumber'; @@ -226,7 +226,6 @@ SQL } $sth->finish; - $dbh->disconnect; $main::lxdebug->leave_sub(); } @@ -658,7 +657,8 @@ sub delete { my ($self, $myconfig, $form) = @_; # connect to database - my $dbh = $form->dbconnect_noauto($myconfig); + my $dbh = $form->get_standard_dbh; + $dbh->begin_work; # delete spool files my $query = qq|SELECT s.spoolfile FROM status s | . @@ -702,7 +702,6 @@ sub delete { do_query($form, $dbh, $query, @values); my $rc = $dbh->commit; - $dbh->disconnect; if ($rc) { my $spool = $::lx_office_conf{paths}->{spool}; @@ -1034,7 +1033,7 @@ sub order_details { my ($self, $myconfig, $form) = @_; # connect to database - my $dbh = $form->dbconnect($myconfig); + my $dbh = $form->get_standard_dbh; my $query; my @values = (); my $sth;