Skip to content

Commit 55a3ded

Browse files
committed
#12717 - Catalog Products List widget is not displayed on Storefront (code styling)
1 parent d30696e commit 55a3ded

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

app/code/Magento/Catalog/Model/ResourceModel/Eav/Attribute.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,6 @@ public function isEnabledInFlat()
240240
return $this->_isEnabledInFlat();
241241
}
242242

243-
244243
/**
245244
* Is attribute enabled for flat indexing
246245
*

app/code/Magento/CatalogWidget/Model/Rule/Condition/Product.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,11 @@ public function addToCollection($collection)
125125
} else {
126126
$alias = 'at_' . $attribute->getAttributeCode();
127127
if (!in_array($alias, array_keys($collection->getSelect()->getPart('from')))) {
128-
$collection->joinAttribute($attribute->getAttributeCode(), 'catalog_product/'.$attribute->getAttributeCode(), 'entity_id');
128+
$collection->joinAttribute(
129+
$attribute->getAttributeCode(),
130+
'catalog_product/'.$attribute->getAttributeCode(),
131+
'entity_id'
132+
);
129133
}
130134

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

0 commit comments

Comments
 (0)