This commit is contained in:
Paula Quispe
2019-09-24 14:13:41 -04:00
parent 6c977c0e81
commit b57766c935

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);