Merged in bugfix/PMC-1227 (pull request #7084)

PMC-1227

Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
Paula Quispe
2019-09-25 13:35:45 +00:00
committed by Julio Cesar Laura Avendaño

View File

@@ -118,7 +118,8 @@ trait SuggestTrait
}
}
if ($optionsLimit >= 0) {
// Define if we need to add a limit in the query
if ($optionsLimit > 0) {
$this->addSuggestLimit($json, $select, $limit, $where);
} else {
$this->addSuggestWhere($json, $parsed, $select, $where, $having);