Skip to content

Commit 34c5d86

Browse files
ENGCOM-9172: Fixed invalid method call #33658
2 parents 51213c3 + 00a95d8 commit 34c5d86

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/code/Magento/ProductAlert/Model/Mailing/Publisher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function execute(string $alertType, array $customerIds, int $websiteId):
108108
]
109109
);
110110
$userId = $this->userContext->getUserId();
111-
$this->bulkManagement->scheduleBulk($bulkUuid, [$operation], _('Mailing of Product Alerts'), $userId);
111+
$this->bulkManagement->scheduleBulk($bulkUuid, [$operation], __('Mailing of Product Alerts'), $userId);
112112
}
113113
}
114114
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ private function formatDiscountDetails(
146146
$discounts = [];
147147
} else {
148148
$discounts[] = [
149-
'label' => $associatedOrder->getDiscountDescription() ?? _('Discount'),
149+
'label' => $associatedOrder->getDiscountDescription() ?? __('Discount'),
150150
'amount' => [
151151
'value' => abs($creditmemoItem->getDiscountAmount()) ?? 0,
152152
'currency' => $associatedOrder->getOrderCurrencyCode()

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ private function formatDiscountDetails(OrderInterface $associatedOrder, InvoiceI
144144
$discounts = [];
145145
} else {
146146
$discounts[] = [
147-
'label' => $associatedOrder->getDiscountDescription() ?? _('Discount'),
147+
'label' => $associatedOrder->getDiscountDescription() ?? __('Discount'),
148148
'amount' => [
149149
'value' => abs($invoiceItem->getDiscountAmount()) ?? 0,
150150
'currency' => $associatedOrder->getOrderCurrencyCode()

0 commit comments

Comments
 (0)