Revision f2cbb7d7
Von Sven Schöling vor mehr als 8 Jahren hinzugefügt
SL/OE.pm | ||
---|---|---|
1257 | 1257 |
my ($self, $myconfig, $form) = @_; |
1258 | 1258 |
|
1259 | 1259 |
# connect to database |
1260 |
my $dbh = $form->get_standard_dbh;
|
|
1260 |
my $dbh = SL::DB->client->dbh;
|
|
1261 | 1261 |
my $query; |
1262 | 1262 |
my @values = (); |
1263 | 1263 |
my $sth; |
... | ... | |
1605 | 1605 |
|
1606 | 1606 |
$form->{username} = $myconfig->{name}; |
1607 | 1607 |
|
1608 |
$dbh->disconnect; |
|
1609 |
|
|
1610 | 1608 |
$form->{delivery_term} = SL::DB::Manager::DeliveryTerm->find_by(id => $form->{delivery_term_id} || undef); |
1611 | 1609 |
$form->{delivery_term}->description_long($form->{delivery_term}->translated_attribute('description_long', $form->{language_id})) if $form->{delivery_term} && $form->{language_id}; |
1612 | 1610 |
|
Auch abrufbar als: Unified diff
OE: single-dbh disconnects