Skip to content

Commit 103797c

Browse files
glo23503devarul
authored andcommitted
ACP2E-1422: No products in categories or search
1 parent f413b3e commit 103797c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/code/Magento/Catalog/Model/Product/Attribute/Repository.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,15 @@ public function save(\Magento\Catalog\Api\Data\ProductAttributeInterface $attrib
115115
if (in_array($attribute->getFrontendInput(), self::FILTERABLE_ALLOWED_INPUT_TYPES)) {
116116
if ($attribute->getIsFilterable()) {
117117
throw InputException::invalidFieldValue(
118-
EavAttributeInterface::IS_FILTERABLE, $attribute->getIsFilterable()
118+
EavAttributeInterface::IS_FILTERABLE,
119+
$attribute->getIsFilterable()
119120
);
120121
}
121122

122123
if ($attribute->getIsFilterableInSearch()) {
123124
throw InputException::invalidFieldValue(
124-
EavAttributeInterface::IS_FILTERABLE_IN_SEARCH, $attribute->getIsFilterableInSearch()
125+
EavAttributeInterface::IS_FILTERABLE_IN_SEARCH,
126+
$attribute->getIsFilterableInSearch()
125127
);
126128
}
127129
}

0 commit comments

Comments
 (0)