We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a61e363 commit 2d73f74Copy full SHA for 2d73f74
app/code/Magento/CatalogWidget/Model/Rule/Condition/Product.php
@@ -118,7 +118,7 @@ public function addToCollection($collection)
118
{
119
$attribute = $this->getAttributeObject();
120
121
- if ($collection->isEnabledFlat()) {
+ if ($attribute->getUsedInProductListing() && $collection->isEnabledFlat()) {
122
$alias = array_keys($collection->getSelect()->getPart('from'))[0];
123
$this->joinedAttributes[$attribute->getAttributeCode()] = $alias . '.' . $attribute->getAttributeCode();
124
return $this;
0 commit comments