Skip to content

Commit f9b4595

Browse files
MAGETWO-91750: Multiselect attribute values is not searchable under Quick Search when more than one value is selected
- Fix perfomance
1 parent e00e3a8 commit f9b4595

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/CatalogSearch/Model/Indexer/Fulltext/Action/DataProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,8 @@ private function getAttributeOptionValue($attributeId, $valueIds, $storeId)
653653
}
654654
}
655655
foreach ($attributeValueIds as $attrValueId) {
656-
$attributeOptionValue .= $this->attributeOptions[$optionKey][$attrValueId] . ' ';
656+
if (isset($this->attributeOptions[$optionKey][$attrValueId]))
657+
$attributeOptionValue .= $this->attributeOptions[$optionKey][$attrValueId] . ' ';
657658
}
658659
return empty($attributeOptionValue) ? null : trim($attributeOptionValue);
659660
}

0 commit comments

Comments
 (0)