From: Sven Schöling Date: Thu, 8 Sep 2016 14:50:59 +0000 (+0200) Subject: OE: single-dbh disconnects X-Git-Tag: release-3.5.4~2046 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=f2cbb7d7c854b21719ad61223bdd639d5d4ffd2c;p=kivitendo-erp.git OE: single-dbh disconnects --- diff --git a/SL/OE.pm b/SL/OE.pm index cc2851740..86869f235 100644 --- a/SL/OE.pm +++ b/SL/OE.pm @@ -1257,7 +1257,7 @@ sub order_details { my ($self, $myconfig, $form) = @_; # connect to database - my $dbh = $form->get_standard_dbh; + my $dbh = SL::DB->client->dbh; my $query; my @values = (); my $sth; @@ -1605,8 +1605,6 @@ sub order_details { $form->{username} = $myconfig->{name}; - $dbh->disconnect; - $form->{delivery_term} = SL::DB::Manager::DeliveryTerm->find_by(id => $form->{delivery_term_id} || undef); $form->{delivery_term}->description_long($form->{delivery_term}->translated_attribute('description_long', $form->{language_id})) if $form->{delivery_term} && $form->{language_id};