Skip to content

Commit ae764ff

Browse files
author
OlgaVasyltsun
committed
MC-14894: The *Recently Viewed Products* widget not displayed when more one product it was viewed
1 parent 01fbfeb commit ae764ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Catalog/Model/Product/ProductFrontendAction/Synchronizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ private function getProductIdsByActions(array $actions)
138138
$productIds = [];
139139

140140
foreach ($actions as $action) {
141-
if (isset($action['product_id']) && is_int($action['product_id'])) {
142-
$productIds[] = $action['product_id'];
141+
if (isset($action['product_id']) && (int)$action['product_id']) {
142+
$productIds[] = (int)$action['product_id'];
143143
}
144144
}
145145

0 commit comments

Comments
 (0)