From 3bf2338c966bbfb176a764e4ae90680b3113e4fb Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Thu, 9 Oct 2014 14:18:16 -0500 Subject: [PATCH] oops: Fix regression from e99d13642 Use the cdata field when searching and sorting the ticket listing on the client side. --- include/client/tickets.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/client/tickets.inc.php b/include/client/tickets.inc.php index c2150b651..2c1a04a97 100644 --- a/include/client/tickets.inc.php +++ b/include/client/tickets.inc.php @@ -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; -- GitLab