X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FOE.pm;h=86869f235221fe14782638b93453f81bdcb6e49c;hb=832dce93297e0577b2f7acf6be3612adca7334d9;hp=cc285174001329f597b9730e0847da06594f1d38;hpb=6b23fb212fb1cee6e1034601d3ceb22a182e50f0;p=kivitendo-erp.git 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};