Skip to content

Commit

Permalink
Merge pull request #8539 from magento-l3/ACP2E-2355-2.4-develop
Browse files Browse the repository at this point in the history
ACP2E-2355: Integration Test failing
  • Loading branch information
dhorytskyi authored Sep 13, 2023
2 parents 968fb3e + 1c903a9 commit 824661b
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 824661b

Please sign in to comment.