mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
fixed not saving primary link (because link_id2from used incomplete array of existing links)
This commit is contained in:
parent
c51ea2a0f8
commit
8b235d1e2c
@ -369,9 +369,10 @@ class boinfolog
|
||||
function link_id2from(&$info,$not_app='',$not_id='')
|
||||
{
|
||||
//echo "<p>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']))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user