Skip to content

Commit c4e51f3

Browse files
committed
MC-20639: MyAccount :: Order Details :: Refund (creditMemo) Details by Order Number
1 parent d74e0ed commit c4e51f3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/SalesGraphQl/Model/Resolver/CreditMemo/CreditMemoItems.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ private function getCreditMemoItems(OrderInterface $order, array $creditMemoItem
9494
$orderItemModel = $orderItem['model'];
9595
if (!$orderItemModel->getParentItem()) {
9696
$creditMemoItemData = $this->getCreditMemoItemData($order, $creditMemoItem);
97-
if (isset($creditMemoItemData)) {
97+
if (!empty($creditMemoItemData)) {
9898
$orderItems[$creditMemoItem->getOrderItemId()] = $creditMemoItemData;
9999
}
100100
}

app/code/Magento/SalesGraphQl/Model/Resolver/Invoice/InvoiceItems.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function getInvoiceItems(OrderInterface $order, array $invoiceItems): \Cl
9393
$orderItemModel = $orderItem['model'];
9494
if (!$orderItemModel->getParentItem()) {
9595
$invoiceItemData = $this->getInvoiceItemData($order, $invoiceItem);
96-
if (isset($invoiceItemData)) {
96+
if (!empty($invoiceItemData)) {
9797
$itemsList[$invoiceItem->getOrderItemId()] = $invoiceItemData;
9898
}
9999
}

0 commit comments

Comments
 (0)