diff --git a/timesheet/inc/class.timesheet_hooks.inc.php b/timesheet/inc/class.timesheet_hooks.inc.php index 5b04a6f08f..6cd6d39824 100644 --- a/timesheet/inc/class.timesheet_hooks.inc.php +++ b/timesheet/inc/class.timesheet_hooks.inc.php @@ -45,6 +45,7 @@ class timesheet_hooks ), 'view_id' => 'ts_id', 'view_popup' => '600x400', + 'view_list' => 'timesheet.timesheet_ui.index', 'add' => array( 'menuaction' => TIMESHEET_APP.'.timesheet_ui.edit', ), @@ -163,4 +164,4 @@ class timesheet_hooks ), ); } -} \ No newline at end of file +} diff --git a/timesheet/inc/class.timesheet_ui.inc.php b/timesheet/inc/class.timesheet_ui.inc.php index 2cea98d491..80b0bbfe54 100644 --- a/timesheet/inc/class.timesheet_ui.inc.php +++ b/timesheet/inc/class.timesheet_ui.inc.php @@ -793,6 +793,9 @@ class timesheet_ui extends timesheet_bo 'filter2' => (int)$GLOBALS['egw_info']['user']['preferences'][TIMESHEET_APP]['show_details'], ); } + if($_GET['search']) { + $content['nm']['search'] = $_GET['search']; + } $read_grants = $this->grant_list(EGW_ACL_READ); $content['nm']['no_owner_col'] = count($read_grants) == 1; if ($GLOBALS['egw_info']['user']['preferences']['timesheet']['nextmatch-timesheet.index.rows']) $content['nm']['selectcols'] = $GLOBALS['egw_info']['user']['preferences']['timesheet']['nextmatch-timesheet.index.rows'];