From 6da84c0dcdbfce48d01ddb8d2923399e5248fb8e Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 23 Sep 2010 22:51:17 +0000 Subject: [PATCH] Changes to be able to create an infolog entry from a tracker ticket. Tracker subject, description and any matching custom fields are copied over. --- infolog/inc/class.infolog_ui.inc.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/infolog/inc/class.infolog_ui.inc.php b/infolog/inc/class.infolog_ui.inc.php index 7bad0ac6fb..a677076ece 100644 --- a/infolog/inc/class.infolog_ui.inc.php +++ b/infolog/inc/class.infolog_ui.inc.php @@ -1150,6 +1150,24 @@ class infolog_ui } break; + case 'tracker': + if ($action_id) { + egw_link::link('infolog',$content['link_to']['to_id'],$action,$action_id); + $content['blur_title'] = egw_link::title($action,$action_id); + } + $content['info_contact'] = $action.':'.$action_id; + $t_bo = new tracker_bo(); + $tracker = $t_bo->read($action_id); + $content['info_subject'] = $tracker['tr_summary']; + $content['info_des'] = $tracker['tr_description']; + foreach($this->bo->customfields as $name => $value) + { + if(array_key_exists('#'.$name, $tracker)) { + $content['#'.$name] = $tracker['#'.$name]; + } + } + break; + case 'projectmanager': $pm_links = array($action_id); case 'addressbook':