Skip to content

Commit 059b5cc

Browse files
author
Oleksandr Gorkun
committed
MC-19145: [CLOUD] Internal error after DHL was configured
1 parent b9d468c commit 059b5cc

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

app/code/Magento/Dhl/Model/Carrier.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -819,15 +819,13 @@ protected function _getAllItems()
819819

820820
if (!empty($decimalItems)) {
821821
foreach ($decimalItems as $decimalItem) {
822-
$fullItems = array_merge(
823-
$fullItems,
824-
array_fill(0, $decimalItem['qty'] * $qty, $decimalItem['weight'])
825-
);
822+
$fullItems[] = array_fill(0, $decimalItem['qty'] * $qty, $decimalItem['weight']);
826823
}
827824
} else {
828-
$fullItems = array_merge($fullItems, array_fill(0, $qty, $this->_getWeight($itemWeight)));
825+
$fullItems[] = array_fill(0, $qty, $this->_getWeight($itemWeight));
829826
}
830827
}
828+
$fullItems = array_merge(...$fullItems);
831829
sort($fullItems);
832830

833831
return $fullItems;

0 commit comments

Comments
 (0)