Add ability to create tracker from infolog to the infolog context menu

This commit is contained in:
Nathan Gray 2011-12-13 18:25:08 +00:00
parent d629b6322e
commit 3ca10ad0c5

View File

@ -968,6 +968,18 @@ class infolog_ui
'popup' => egw_link::get_registry('timesheet', 'add_popup'),
);
}
if ($GLOBALS['egw_info']['user']['apps']['tracker'])
{
$actions['tracker'] = array(
'icon' => 'tracker/navbar',
'caption' => 'Tracker',
'group' => $group,
'url' => 'menuaction=tracker.tracker_ui.edit&'.
egw_link::get_registry('tracker', 'add_app') . '[]=infolog&'.egw_link::get_registry('tracker','add_id').'[]=$id',
'allowOnMultiple' => false,
'popup' => egw_link::get_registry('tracker', 'add_popup'),
);
}
$actions['documents'] = infolog_merge::document_action(
$this->prefs['document_dir'], ++$group, 'Insert in document', 'document_',