Skip to content

Commit

Permalink
Bugfix for catalog suggest (#42)
Browse files Browse the repository at this point in the history
Adds default conditions
  • Loading branch information
creativemadeofficial authored and aimeos committed Jul 30, 2018
1 parent 8f478be commit 0079755
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/html/src/Client/Html/Catalog/Suggest/Standard.php
Expand Up @@ -355,6 +355,7 @@ public function addData( \Aimeos\MW\View\Iface $view, array &$tags = [], &$expir
$expr = array(
$filter->compare( '>', $filter->createFunction( 'index.text.relevance', array( 'default', $langid, $input ) ), 0 ),
$filter->compare( '>', $filter->createFunction( 'index.text.value', array( 'default', $langid, $types, 'product' ) ), '' ),
$filter->getConditions(),
);
$filter->setConditions( $filter->combine( '&&', $expr ) );

Expand Down

0 comments on commit 0079755

Please sign in to comment.