Skip to content

Commit

Permalink
magento#12717 - Catalog Products List widget is not displayed on Stor…
Browse files Browse the repository at this point in the history
…efront (code styling)
  • Loading branch information
RostislavS committed Dec 18, 2017
1 parent d30696e commit 55a3ded
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,6 @@ public function isEnabledInFlat()
return $this->_isEnabledInFlat();
}


/**
* Is attribute enabled for flat indexing
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,11 @@ public function addToCollection($collection)
} else {
$alias = 'at_' . $attribute->getAttributeCode();
if (!in_array($alias, array_keys($collection->getSelect()->getPart('from')))) {
$collection->joinAttribute($attribute->getAttributeCode(), 'catalog_product/'.$attribute->getAttributeCode(), 'entity_id');
$collection->joinAttribute(
$attribute->getAttributeCode(),
'catalog_product/'.$attribute->getAttributeCode(),
'entity_id'
);
}

$this->joinedAttributes[$attribute->getAttributeCode()] = $alias . '.value';
Expand Down

0 comments on commit 55a3ded

Please sign in to comment.