]> wagnertech.de Git - mfinanz.git/blobdiff - SL/AM.pm
DBO Update - alle normalen Models hinzugefügt.
[mfinanz.git] / SL / AM.pm
index 9d8d4671fbb4edd10f67ca778faa6461e116623d..f5736f14b3fe2146b90ab525ede2d91ba4bc597b 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();