From 3ca10ad0c53b07bdf8a1e99676fa540b5ea3e295 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 13 Dec 2011 18:25:08 +0000 Subject: [PATCH] Add ability to create tracker from infolog to the infolog context menu --- infolog/inc/class.infolog_ui.inc.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/infolog/inc/class.infolog_ui.inc.php b/infolog/inc/class.infolog_ui.inc.php index 269b967c49..d07633247d 100644 --- a/infolog/inc/class.infolog_ui.inc.php +++ b/infolog/inc/class.infolog_ui.inc.php @@ -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_',