What's the reason why I cannot set a link to a person?
We tried to set a link to a person (with '[ [item: 887 ] ]') in a comment, but we got an error warning.
Therefore I checked the code and saw that in the function (see following) a project id is always needed. But 'normal' persons are never linked to a project.
from db/db_item.inc.php
static function getVisibleById($id)
{
if($i= DbProjectItem::getById($id)) {
if($i->type == ITEM_PROJECT) {
return $i;
}
else {
if($p= Project::getById($i->project)) {
if($p->validateViewItem($i)) {
return $i;
}
}
else {
trigger_error("item #$id (type= $i->type) has no project?",E_USER_WARNING);
}
}
}
return NULL;
}