From c0f3dcbe50ceafd36b8106c02b21615ccaad9f4c Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 14 Jun 2010 14:28:48 +0000 Subject: [PATCH] Backport 30801: Let parent handle deciding which columns to search - gives advanced search functionality to link searches --- timesheet/inc/class.timesheet_bo.inc.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/timesheet/inc/class.timesheet_bo.inc.php b/timesheet/inc/class.timesheet_bo.inc.php index 030ad04dfc..65425dc0a8 100644 --- a/timesheet/inc/class.timesheet_bo.inc.php +++ b/timesheet/inc/class.timesheet_bo.inc.php @@ -676,19 +676,14 @@ class timesheet_bo extends so_sql_cf */ function link_query( $pattern, Array &$options = array() ) { - $criteria = array(); $limit = false; $need_count = false; - foreach(array('ts_project','ts_title','ts_description') as $col) - { - $criteria[$col] = $pattern; - } if($options['start'] || $options['num_rows']) { $limit = array($options['start'], $options['num_rows']); $need_count = true; } $result = array(); - foreach((array) $this->search($criteria,false,'','','%',false,'OR', $limit, null, '', $need_count) as $ts ) + foreach((array) $this->search($pattern,false,'','','%',false,'OR', $limit, null, '', $need_count) as $ts ) { if ($ts) $result[$ts['ts_id']] = $this->link_title($ts); }