From f2cbb7d7c854b21719ad61223bdd639d5d4ffd2c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 8 Sep 2016 16:50:59 +0200 Subject: [PATCH] OE: single-dbh disconnects --- SL/OE.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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}; -- 2.20.1