Skip to content

Commit c989fcb

Browse files
author
Oleksandr Dubovyk
committed
MC-20490: Catalog product list widget doesn't work with custom attribute conditions
- static test fixed
1 parent dba05f1 commit c989fcb

File tree

1 file changed

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

1 file changed

+4
-5
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function ($attribute) {
107107
}
108108

109109
/**
110-
* {@inheritdoc}
110+
* @inheritdoc
111111
*
112112
* @param array &$attributes
113113
* @return void
@@ -223,8 +223,7 @@ protected function addNotGlobalAttribute(
223223
$validEntities[] = $entityId;
224224
}
225225
} else {
226-
if (
227-
isset($storeValues[Store::DEFAULT_STORE_ID]) &&
226+
if (isset($storeValues[Store::DEFAULT_STORE_ID]) &&
228227
$this->validateAttribute($storeValues[Store::DEFAULT_STORE_ID])
229228
) {
230229
$validEntities[] = $entityId;
@@ -244,7 +243,7 @@ protected function addNotGlobalAttribute(
244243
}
245244

246245
/**
247-
* {@inheritdoc}
246+
* @inheritdoc
248247
*
249248
* @return string
250249
*/
@@ -265,7 +264,7 @@ public function getMappedSqlField()
265264
}
266265

267266
/**
268-
* {@inheritdoc}
267+
* @inheritdoc
269268
*
270269
* @param \Magento\Catalog\Model\ResourceModel\Product\Collection $productCollection
271270
* @return $this

0 commit comments

Comments
 (0)