Skip to content
Snippets Groups Projects
Commit 3bf2338c authored by Jared Hancock's avatar Jared Hancock
Browse files

oops: Fix regression from e99d1364

Use the cdata field when searching and sorting the ticket listing on the
client side.
parent de30249b
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
$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');
$orderWays=array('DESC'=>'DESC','ASC'=>'ASC');
//Sorting options...
......@@ -75,7 +75,7 @@ if($search) {
} else {//Deep search!
$queryterm=db_real_escape($_REQUEST['q'],false); //escape the term ONLY...no quotes.
$qwhere.=' AND ( '
." subject.value LIKE '%$queryterm%'"
." cdata.subject LIKE '%$queryterm%'"
." OR thread.body LIKE '%$queryterm%'"
.' ) ';
$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