projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a590a65
)
AM->retrieve_units bruacht keine eigene Datenbankverbindung
author
Sven Schöling
<s.schoeling@linet-services.de>
Wed, 21 Jul 2010 12:46:04 +0000
(14:46 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Wed, 21 Jul 2010 12:46:04 +0000
(14:46 +0200)
SL/AM.pm
patch
|
blob
|
history
diff --git
a/SL/AM.pm
b/SL/AM.pm
index
9d8d467
..
f5736f1
100644
(file)
--- a/
SL/AM.pm
+++ b/
SL/AM.pm
@@
-1742,7
+1742,7
@@
sub retrieve_units {
my ($self, $myconfig, $form, $prefix) = @_;
- my $dbh = $form->
dbconnect($myconfig)
;
+ my $dbh = $form->
get_standard_dbh
;
my $query = "SELECT *, base_unit AS original_base_unit FROM units";
@@
-1782,9
+1782,7
@@
sub retrieve_units {
map({ $unit->{"LANGUAGES"}->{$ref->{"template_code"}}->{$_} = $ref->{$_} } keys(%{$ref}));
}
}
- $sth->finish();
-
- $dbh->disconnect();
+ $sth->finish;
$main::lxdebug->leave_sub();