Skip to content

Commit 0809bf3

Browse files
committed
MAGETWO-94080: Aditional Fix for "Catalog Products List" widget displaying on frontend
1 parent 188c26e commit 0809bf3

File tree

1 file changed

+4
-4
lines changed
  • app/code/Magento/CatalogWidget/Model/Rule/Condition

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,10 @@ public function collectValidatedAttributes($productCollection)
263263
* @param \Magento\Framework\DataObject $attribute
264264
* @return bool
265265
*/
266-
private function isEnabledInFlat(\Magento\Framework\DataObject $attribute)
266+
private function isEnabledInFlat(\Magento\Framework\DataObject $attribute): bool
267267
{
268-
return $attribute->getData('backend_type') == 'static'
269-
|| $attribute->getData('used_in_product_listing') == 1
270-
|| $attribute->getData('used_for_sort_by') == 1;
268+
return $attribute->getData('backend_type') === 'static'
269+
|| (int) $attribute->getData('used_in_product_listing') === 1
270+
|| (int) $attribute->getData('used_for_sort_by') === 1;
271271
}
272272
}

0 commit comments

Comments
 (0)