From 1be1a922c4a9b0e96a2866f0fc3a0209fa1bea1c Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 1 Apr 2010 21:03:00 +0000 Subject: [PATCH] Define colums_to_search and use search2criteria() to get extra search functionality --- timesheet/inc/class.timesheet_bo.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/timesheet/inc/class.timesheet_bo.inc.php b/timesheet/inc/class.timesheet_bo.inc.php index 48d6b444bb..030ad04dfc 100644 --- a/timesheet/inc/class.timesheet_bo.inc.php +++ b/timesheet/inc/class.timesheet_bo.inc.php @@ -153,6 +153,11 @@ class timesheet_bo extends so_sql_cf */ const EXTRA_TABLE = 'egw_timesheet_extra'; + /** + * Columns to search when user does a text search + */ + var $columns_to_search = array('egw_timesheet.ts_id', 'ts_project', 'ts_title', 'ts_description', 'ts_duration', 'ts_quantity', 'ts_unitprice'); + function __construct() { parent::__construct(TIMESHEET_APP,'egw_timesheet',self::EXTRA_TABLE,'','ts_extra_name','ts_extra_value','ts_id');