forked from extern/egroupware
Add favorite onto side-box menu for timesheet app
This commit is contained in:
parent
eb989ed98b
commit
40ba4bad22
@ -103,6 +103,15 @@ class timesheet_hooks
|
||||
|
||||
if ($location == 'sidebox_menu')
|
||||
{
|
||||
// Magic etemplate2 favorites menu (from nextmatch widget)
|
||||
display_sidebox($appname,lang('Favorites'),array(
|
||||
array(
|
||||
'no_lang' => true,
|
||||
'text'=> etemplate_widget_nextmatch::favorite_list($appname,'timesheet.timesheet_ui.get_rows'),
|
||||
'link'=>false,
|
||||
'icon' => false
|
||||
)
|
||||
));
|
||||
$file = array(
|
||||
);
|
||||
display_sidebox($appname,$GLOBALS['egw_info']['apps'][$appname]['title'].' '.lang('Menu'),$file);
|
||||
|
@ -894,6 +894,7 @@ class timesheet_ui extends timesheet_bo
|
||||
$sel_options['ts_status'][self::DELETED_STATUS] = 'Deleted';
|
||||
}
|
||||
$content['nm']['no_status'] = count($sel_options['ts_status']) <= 1; // 1 because of 'No status'
|
||||
$content['nm']['favorites'] = true; //Enable favorite
|
||||
|
||||
if ($this->pm_integration != 'full')
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user