diff --git a/src/Drupal/Commands/core/EntityCommands.php b/src/Drupal/Commands/core/EntityCommands.php index f00ea8b825..06b80ebd1d 100644 --- a/src/Drupal/Commands/core/EntityCommands.php +++ b/src/Drupal/Commands/core/EntityCommands.php @@ -67,7 +67,7 @@ public function delete(string $entity_type, $ids = null, array $options = ['bund $this->io()->progressStart(count($result)); foreach (array_chunk($result, $options['chunks'], true) as $chunk) { drush_op([$this, 'doDelete'], $entity_type, $chunk); - $this->io()->progressAdvance($options['chunks']); + $this->io()->progressAdvance(count($chunk)); } $this->io()->progressFinish(); $this->logger()->success(dt("Deleted !type entity Ids: !ids", ['!type' => $entity_type, '!ids' => implode(', ', array_values($result))])); @@ -130,7 +130,7 @@ public function loadSave(string $entity_type, $ids = null, array $options = ['bu $this->io()->progressStart(count($result)); foreach (array_chunk($result, $options['chunks'], true) as $chunk) { drush_op([$this, 'doSave'], $entity_type, $chunk); - $this->io()->progressAdvance($options['chunks']); + $this->io()->progressAdvance(count($chunk)); } $this->io()->progressFinish(); $this->logger()->success(dt("Saved !type entity ids: !ids", ['!type' => $entity_type, '!ids' => implode(', ', array_values($result))]));