Skip to content

Commit

Permalink
Merge pull request #1237 from wouter-toppershops/wouter-toppershops-p…
Browse files Browse the repository at this point in the history
…atch-1

Fixes #1234 Update AttributeAggregation.php
  • Loading branch information
rbayet authored Dec 19, 2018
2 parents b179a4e + f7cabdb commit 57e5365
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function prepareCollection(ProductCollection $collection)
foreach ($this->attributeConfig->getAutocompleteAttributeCollection() as $attribute) {
$facetSize = $this->autocompleteHelper->getMaxSize(DataProvider::AUTOCOMPLETE_TYPE);
$filterField = $this->attributeConfig->getFilterField($attribute);
$collection->addFacet(['name' => $filterField, BucketInterface::TYPE_TERM, 'size' => $facetSize]);
$collection->addFacet(['name' => $filterField, 'type' => BucketInterface::TYPE_TERM, 'size' => $facetSize]);
}

return $collection;
Expand Down

0 comments on commit 57e5365

Please sign in to comment.