Skip to content

Commit

Permalink
ACP2E-2355: Integration Test failing
Browse files Browse the repository at this point in the history
  • Loading branch information
dhorytskyi committed Sep 13, 2023
1 parent 968fb3e commit 1c903a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Sales/Test/Fixture/Creditmemo.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ private function prepareCreditmemoItems(array $data): array
} elseif ($itemToRefund instanceof ProductInterface) {
$creditmemoItem['order_item_id'] = $orderItemIdsBySku[$itemToRefund->getSku()];
} else {
$creditmemoItem = array_intersect($itemToRefund, $creditmemoItem) + $creditmemoItem;
$creditmemoItem = array_intersect_key($itemToRefund, $creditmemoItem) + $creditmemoItem;
if (isset($itemToRefund['sku'])) {
$creditmemoItem['order_item_id'] = $orderItemIdsBySku[$itemToRefund['sku']];
} elseif (isset($itemToRefund['product_id'])) {
Expand Down

0 comments on commit 1c903a9

Please sign in to comment.