Skip to content

Commit 72dba83

Browse files
ACP2E-3336: Stock alert email translation to the wrong language
1 parent 707f239 commit 72dba83

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,12 @@ private function validateAlertType(string $alertType): void
233233
* @return AbstractCollection
234234
* @throws \InvalidArgumentException
235235
*/
236-
private function getAlertCollection(string $alertType, array $customerIds, int $websiteId, int $storeId): AbstractCollection
237-
{
236+
private function getAlertCollection(
237+
string $alertType,
238+
array $customerIds,
239+
int $websiteId,
240+
int $storeId
241+
): AbstractCollection {
238242
switch ($alertType) {
239243
case self::ALERT_TYPE_STOCK:
240244
$collection = $this->stockCollectionFactory->create();

dev/tests/integration/testsuite/Magento/ProductAlert/_files/product_alert.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
$product->getPrice()+1
3030
)->setWebsiteId(
3131
1
32+
)->setStoreId(
33+
1
3234
);
3335
$price->save();
3436

@@ -39,5 +41,7 @@
3941
$product->getId()
4042
)->setWebsiteId(
4143
1
44+
)->setStoreId(
45+
1
4246
);
4347
$stock->save();

0 commit comments

Comments
 (0)