Implement new link hook view_list, to be able to be taken to a list of entries

This commit is contained in:
Nathan Gray 2009-12-08 23:19:06 +00:00
parent 30be48f6e6
commit 7217a92079
2 changed files with 5 additions and 1 deletions

View File

@ -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
),
);
}
}
}

View File

@ -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'];