Skip to content

Commit

Permalink
Merge pull request #9 from ethanbeyer/ethanbeyer-pr-3
Browse files Browse the repository at this point in the history
fixes an issue where the `uploaded_row_count` was counting an unset parameter
  • Loading branch information
goellner authored Jul 1, 2021
2 parents a8c633a + efd293c commit df77d13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DataImporter/DataImporterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ public function finalize()
$failed_entries = $this->save($entries, $collection, $mapping, $array_delimiter, $import_id);

$data = [
'uploaded_row_count' => $this->request->session()->get('uploaded_row_count'),
'imported_row_count' => $this->request->session()->get('uploaded_row_count') - sizeof($failed_entries),
'uploaded_row_count' => count($entries),
'imported_row_count' => count($entries) - sizeof($failed_entries),
'failed_entries' => $failed_entries,
'failed_cnt' => sizeof($failed_entries)
];
Expand Down

0 comments on commit df77d13

Please sign in to comment.