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

Merge pull request #4771 from JediKev/issue/faq-search-results

issue: FAQ Search Results
parents 50558663 cd4ba226
No related branches found
No related tags found
No related merge requests found
......@@ -18,12 +18,14 @@ if($_REQUEST['q'] || $_REQUEST['cid'] || $_REQUEST['topicId']) { //Search
$faqs->filter(array('topics__topic_id'=>$_REQUEST['topicId']));
if ($_REQUEST['q'])
$faqs->filter(Q::ANY(array(
'question__contains'=>$_REQUEST['q'],
'answer__contains'=>$_REQUEST['q'],
'keywords__contains'=>$_REQUEST['q'],
'category__name__contains'=>$_REQUEST['q'],
'category__description__contains'=>$_REQUEST['q'],
$faqs->filter(Q::all(array(
Q::ANY(array(
'question__contains'=>$_REQUEST['q'],
'answer__contains'=>$_REQUEST['q'],
'keywords__contains'=>$_REQUEST['q'],
'category__name__contains'=>$_REQUEST['q'],
'category__description__contains'=>$_REQUEST['q'],
))
)));
include CLIENTINC_DIR . 'kb-search.inc.php';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment