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