Skip to content

Commit 2edaa12

Browse files
committed
MC-30099: Inventory Sources and Stock is breaking the Category and CMS
1 parent fed8e75 commit 2edaa12

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ protected function addNotGlobalAttribute(
250250
public function getMappedSqlField()
251251
{
252252
$result = '';
253-
if (in_array($this->getAttribute(), ['category_ids', 'sku'])) {
253+
if (in_array($this->getAttribute(), ['category_ids', 'sku', 'attribute_set_id'])) {
254254
$result = parent::getMappedSqlField();
255255
} elseif (isset($this->joinedAttributes[$this->getAttribute()])) {
256256
$result = $this->joinedAttributes[$this->getAttribute()];

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,8 @@ public function getMappedSqlField()
625625
$mappedSqlField = $this->getEavAttributeTableAlias() . '.value';
626626
} elseif ($this->getAttribute() == 'category_ids') {
627627
$mappedSqlField = 'e.entity_id';
628+
} elseif ($this->getAttribute() == 'attribute_set_id') {
629+
$mappedSqlField = $mappedSqlField = 'e.attribute_set_id';
628630
} else {
629631
$mappedSqlField = parent::getMappedSqlField();
630632
}

0 commit comments

Comments
 (0)