]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Controller/CsvImport/Base.pm
CSV-Import: single-dbh
[mfinanz.git] / SL / Controller / CsvImport / Base.pm
index 2fa788753dd8ed52f12c87a9ddd67256384f17e1..17a3bfdd6563341ee76a4137bf90cb59a94ebe02 100644 (file)
@@ -461,7 +461,7 @@ sub save_objects {
 
   $self->controller->track_progress(phase => 'saving data', progress => 0); # scale from 45..95%;
 
-  my $dbh = $data->[0]{object}->db;
+  my $dbh = $data->[0]{object}->db->dbh;
 
   my $last_index = $#$data;
   my $chunk_size = 100;      # one transaction and progress update every 100 objects