mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Define colums_to_search and use search2criteria() to get extra search functionality
This commit is contained in:
parent
4653674fa9
commit
1be1a922c4
@ -153,6 +153,11 @@ class timesheet_bo extends so_sql_cf
|
|||||||
*/
|
*/
|
||||||
const EXTRA_TABLE = 'egw_timesheet_extra';
|
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()
|
function __construct()
|
||||||
{
|
{
|
||||||
parent::__construct(TIMESHEET_APP,'egw_timesheet',self::EXTRA_TABLE,'','ts_extra_name','ts_extra_value','ts_id');
|
parent::__construct(TIMESHEET_APP,'egw_timesheet',self::EXTRA_TABLE,'','ts_extra_name','ts_extra_value','ts_id');
|
||||||
|
Loading…
Reference in New Issue
Block a user