From df84df43d11b6d9f8832fbb7da7cae5edea72990 Mon Sep 17 00:00:00 2001 From: klimnad <info@klimnad.ru> Date: Sun, 14 Oct 2012 20:10:23 +0900 Subject: [PATCH] Update include/staff/faq-categories.inc.php here is speak about this https://github.com/osTicket/osTicket-1.7/issues/44 --- include/staff/faq-categories.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/staff/faq-categories.inc.php b/include/staff/faq-categories.inc.php index eb673a735..11512a03f 100644 --- a/include/staff/faq-categories.inc.php +++ b/include/staff/faq-categories.inc.php @@ -61,7 +61,7 @@ if($_REQUEST['q'] || $_REQUEST['cid'] || $_REQUEST['topicId']) { //Search. $sql.=' AND faq.category_id='.db_input($_REQUEST['cid']); if($_REQUEST['q']) - $sql.=" AND MATCH(question,answer,keywords) AGAINST ('".db_input($_REQUEST['q'],false)."')"; + $sql.=" AND question LIKE ('%".db_input($_REQUEST['q'],false)."%') OR answer LIKE ('%".db_input($_REQUEST['q'],false)."%') OR keywords LIKE ('%".db_input($_REQUEST['q'],false)."%')"; $sql.=' GROUP BY faq.faq_id'; echo "<div><strong>Search Results</strong></div><div class='clear'></div>"; -- GitLab