Skip to content
Snippets Groups Projects
Commit edbafb05 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #1379 from greezybacon/issue/1364


oops: Fix regression from e99d1364

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents 430426c6 3bf2338c
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,7 @@ if(isset($_REQUEST['status'])) { //Query string status has nothing to do with th ...@@ -24,7 +24,7 @@ if(isset($_REQUEST['status'])) { //Query string status has nothing to do with th
$results_type=__('Open Tickets'); $results_type=__('Open Tickets');
} }
$sortOptions=array('id'=>'`number`', 'subject'=>'subject.value', $sortOptions=array('id'=>'`number`', 'subject'=>'cdata.subject',
'status'=>'status.name', 'dept'=>'dept_name','date'=>'ticket.created'); 'status'=>'status.name', 'dept'=>'dept_name','date'=>'ticket.created');
$orderWays=array('DESC'=>'DESC','ASC'=>'ASC'); $orderWays=array('DESC'=>'DESC','ASC'=>'ASC');
//Sorting options... //Sorting options...
...@@ -75,7 +75,7 @@ if($search) { ...@@ -75,7 +75,7 @@ if($search) {
} else {//Deep search! } else {//Deep search!
$queryterm=db_real_escape($_REQUEST['q'],false); //escape the term ONLY...no quotes. $queryterm=db_real_escape($_REQUEST['q'],false); //escape the term ONLY...no quotes.
$qwhere.=' AND ( ' $qwhere.=' AND ( '
." subject.value LIKE '%$queryterm%'" ." cdata.subject LIKE '%$queryterm%'"
." OR thread.body LIKE '%$queryterm%'" ." OR thread.body LIKE '%$queryterm%'"
.' ) '; .' ) ';
$deep_search=true; $deep_search=true;
......
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