diff --git a/nodequeue.module b/nodequeue.module index 5f84cd5..d3e378f 100644 --- a/nodequeue.module +++ b/nodequeue.module @@ -1799,6 +1799,8 @@ function nodequeue_api_autocomplete($queue, $subqueue, $string) { // Call to the API. $function = $queue->owner . "_nodequeue_autocomplete"; if (function_exists($function)) { + $where .= "LOWER(n.title) LIKE LOWER(:string) AND n.type in (:types) AND"; + $where_args[':string'] = '%' . check_plain($string) . '%'; return $function($queue, $subqueue, $string, $where, $where_args); } else {