Commit dfdc1f7a authored by fjgarlin's avatar fjgarlin Committed by Berdir
Browse files

Issue #3119354 by fjgarlin: Bulk delete aliases error.

parent 4d670e4c
......@@ -234,7 +234,7 @@ class EntityAliasTypeBase extends ContextAwarePluginBase implements AliasTypeInt
PathautoState::bulkDelete($this->getEntityTypeId(), $pids_by_id);
$context['sandbox']['count'] += count($pids_by_id);
$context['sandbox']['current'] = max($pids_by_id);
$context['sandbox']['current'] = !empty($pids_by_id) ? max($pids_by_id) : 0;
$context['results']['deletions'][] = $this->getLabel();
if ($context['sandbox']['count'] != $context['sandbox']['total']) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment