Skip to content

Commit 9a6ad60

Browse files
author
Oleksandr Iegorov
committed
MC-42811: Missing Bundled Products on Category Pages
1 parent 6b80ebb commit 9a6ad60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Elasticsearch/Model/Indexer/IndexerHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ private function updateCacheContext(array $docs) : void
145145
{
146146
$categoryIds = [];
147147
foreach ($docs as $document) {
148-
if (is_array($document['category_ids'])) {
148+
if (!empty($document['category_ids']) && is_array($document['category_ids'])) {
149149
foreach ($document['category_ids'] as $id) {
150150
$categoryIds[] = $id;
151151
}

0 commit comments

Comments
 (0)