From 8b235d1e2c58a9577337d3127388ff0033e5a6e9 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 10 Mar 2008 21:04:51 +0000 Subject: [PATCH] fixed not saving primary link (because link_id2from used incomplete array of existing links) --- infolog/inc/class.boinfolog.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/infolog/inc/class.boinfolog.inc.php b/infolog/inc/class.boinfolog.inc.php index ad48b6bfb4..4fb206c124 100644 --- a/infolog/inc/class.boinfolog.inc.php +++ b/infolog/inc/class.boinfolog.inc.php @@ -369,9 +369,10 @@ class boinfolog function link_id2from(&$info,$not_app='',$not_id='') { //echo "

boinfolog::link_id2from(subject='$info[info_subject]', link_id='$info[info_link_id]', from='$info[info_from]', not_app='$not_app', not_id='$not_id')"; + if ($info['info_link_id'] > 0 && (isset($info['links']) && ($link = $info['links'][$info['info_link_id']]) || // use supplied links info - !isset($info['links']) && ($link = egw_link::get_link($info['info_link_id'])) !== False)) + ($link = egw_link::get_link($info['info_link_id'])) !== False)) // if link not found in supplied links, we always search! { if (isset($info['links'])) {