]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Controller/CsvImport/Base.pm
CsvImport: Aufträge: Auf ungültige Artikel prüfen.
[mfinanz.git] / SL / Controller / CsvImport / Base.pm
index 7030b05e6f2c50fac5d09376a925ca6884afdb93..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
@@ -485,6 +485,7 @@ sub save_objects {
           $self->controller->num_imported($self->controller->num_imported + 1);
         }
       }
+      1;
     }) or do { die SL::DB->client->error };
   }
   $self->controller->track_progress(progress => 100);