- Issue created by @skyriter
- Status changed to Fixed
5 months ago 4:28pm 5 August 2024 - Status changed to Fixed
4 months ago 2:03am 12 August 2024
In the case of a script that doesn't have a determinable number of items to gather, such as when you are both creating nodes and processing them, you can run into a division by zero issue in OperationsBase.php:
$vars = [
'@last_item_completed' => is_null($last_item_completed) ? $this->t('unknown') : $last_item_completed,
'@total_items' => is_null($total_items) ? $this->t('unknown') : $total_items,
'@percent' => is_null($total_items ? $this->t('unknown') : round(($last_item_completed / $total_items) * 100),
'@units' => $this->t('items processed'),
];
Fixed
1.0
Code