Skip to content
Snippets Groups Projects
Unverified Commit 0b88a37d authored by Peter Rotich's avatar Peter Rotich Committed by GitHub
Browse files

Merge pull request #4151 from nicoletta-maia/develop-fix_orderby_relevance

Issue: SQL Error Unknown column '__relevance__' in 'order clause'
parents 65de3273 db22e884
Branches
Tags
No related merge requests found
......@@ -32,7 +32,7 @@ class OrgsAjaxAPI extends AjaxController {
$q = $_REQUEST['q'];
$limit = isset($_REQUEST['limit']) ? (int) $_REQUEST['limit']:25;
if (strlen($q) < 3)
if (strlen(Format::searchable($q)) < 3)
return $this->encode(array());
$orgs = Organization::objects()
......
......@@ -51,7 +51,7 @@ class TicketsAjaxAPI extends AjaxController {
$q = $_REQUEST['q'];
if (strlen($q) < 3)
if (strlen(Format::searchable($q)) < 3)
return $this->encode(array());
global $ost;
......
......@@ -39,7 +39,7 @@ class UsersAjaxAPI extends AjaxController {
$emails=array();
$matches = array();
if (strlen($q) < 3)
if (strlen(Format::searchable($q)) < 3)
return $this->encode(array());
if (!$type || !strcasecmp($type, 'remote')) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment