Skip to content

Commit 36ade1b

Browse files
committed
MC-35013: SKU search in Advanced Search page doesn't work
1 parent d44f3e1 commit 36ade1b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/code/Magento/CatalogSearch/Model/Advanced.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,8 @@ protected function addSearchCriteria($attribute, $value)
361361
*/
362362
protected function getPreparedSearchCriteria($attribute, $value)
363363
{
364+
$from = null;
365+
$to = null;
364366
if (is_array($value)) {
365367
if (isset($value['from']) && isset($value['to'])) {
366368
if (!empty($value['from']) || !empty($value['to'])) {

0 commit comments

Comments
 (0)