Skip to content

Commit

Permalink
Fix $itemsExported for CSV Actor exports. (#1762)
Browse files Browse the repository at this point in the history
  • Loading branch information
melaniekung committed Mar 14, 2024
1 parent d733552 commit 80bc661
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/job/arActorExportJob.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ protected function doExport($path)
{
$search = self::findExportRecords($this->params);

$itemsExported = 0;
$this->itemsExported = 0;

// Scroll through results then iterate through resulting IDs
foreach (arElasticSearchPluginUtil::getScrolledSearchResultIdentifiers($search) as $id) {
Expand Down Expand Up @@ -98,6 +98,6 @@ protected function csvActionExport($path, $resource)
$writer->exportResource($actor);
}

++$itemsExported;
++$this->itemsExported;
}
}

0 comments on commit 80bc661

Please sign in to comment.