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 ddcf068 commit 14b90edCopy full SHA for 14b90ed
app/code/Magento/CatalogSearch/Model/Advanced.php
@@ -197,6 +197,11 @@ public function addFilters($values)
197
if (!isset($values[$attribute->getAttributeCode()])) {
198
continue;
199
}
200
+ if ($attribute->getFrontendInput() == 'text' || $attribute->getFrontendInput() == 'textarea') {
201
+ if (!trim($values[$attribute->getAttributeCode()])) {
202
+ continue;
203
+ }
204
205
$value = $values[$attribute->getAttributeCode()];
206
$preparedSearchValue = $this->getPreparedSearchCriteria($attribute, $value);
207
if (false === $preparedSearchValue) {
0 commit comments