Skip to content

Commit

Permalink
damned autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
alikon committed Feb 25, 2015
1 parent f395b9e commit 2ced4c4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion administrator/components/com_modules/models/modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ protected function getListQuery()
{
$escapedSearchString = $this->refineSearchStringToRegex($search, '/');
$search = $db->quote($escapedSearchString);
$query->where('(' . 'a.title ' . $db->regexp($search) . ' OR a.note ' . $db->regexp($search) . ')');
$query->where('(' . 'a.title ' . $query->regexp($search) . ' OR a.note ' . $query->regexp($search) . ')');
}
}

Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_templates/models/styles.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ protected function getListQuery()
{
$escapedSearchString = $this->refineSearchStringToRegex($search, '/');
$search = $db->quote($escapedSearchString);
$query->where('(' . 'a.template ' . $db->regexp($search) . ' OR a.title ' . $db->regexp($search) . ')');
$query->where('(' . 'a.template ' . $query->regexp($search) . ' OR a.title ' . $query->regexp($search) . ')');
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ protected function getListQuery()
{
$escapedSearchString = $this->refineSearchStringToRegex($search, '/');
$search = $db->quote($escapedSearchString);
$query->where('(' . 'a.element ' . $db->regexp($search) . ' OR a.name ' . $db->regexp($search) . ')');
$query->where('(' . 'a.element ' . $query->regexp($search) . ' OR a.name ' . $query->regexp($search) . ')');
}
}

Expand Down

0 comments on commit 2ced4c4

Please sign in to comment.