diff --git a/etemplate/inc/class.bo_merge.inc.php b/etemplate/inc/class.bo_merge.inc.php index 0c3ca060d5..3669c5a904 100644 --- a/etemplate/inc/class.bo_merge.inc.php +++ b/etemplate/inc/class.bo_merge.inc.php @@ -295,6 +295,22 @@ abstract class bo_merge return $replacements; } + /** + * Get links for the given record + * + * Uses egw_link system to get link titles + */ + protected function get_links($app, $id) + { + $links = egw_link::get_links($app, $id); + $link_titles = array(); + foreach($links as $link_id => $link_info) + { + $link_titles[] = egw_link::title($link_info['app'], $link_info['id']); + } + return implode("\n",$link_titles); + } + /** * Format a datetime *