Skip to content

Commit a4ad259

Browse files
committed
AC-13596: Catalog Advanced Search with empty data goes to search result page[2.4.dev branch]
Updated advanced search prepareCondition. Add default condition to be false.
1 parent df2f7aa commit a4ad259

File tree

1 file changed

+3
-3
lines changed
  • app/code/Magento/CatalogSearch/Model/ResourceModel

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2011 Adobe
4+
* All rights reserved.
55
*/
66
namespace Magento\CatalogSearch\Model\ResourceModel;
77

@@ -64,7 +64,7 @@ protected function _construct()
6464
*/
6565
public function prepareCondition($attribute, $value)
6666
{
67-
$condition = $value;
67+
$condition = false;
6868

6969
if (is_array($value)) {
7070
if ($attribute->getBackendType() == 'varchar') { // multiselect

0 commit comments

Comments
 (0)