Fix : contact and user getnomurl needs all info to display tooltip correctly
This commit is contained in:
parent
6fe69d4a60
commit
bfd46f62ea
@ -201,18 +201,12 @@ if ($permission) {
|
|||||||
|
|
||||||
if ($tab[$i]['source']=='internal')
|
if ($tab[$i]['source']=='internal')
|
||||||
{
|
{
|
||||||
$userstatic->id=$tab[$i]['id'];
|
$userstatic->fetch($tab[$i]['id']);
|
||||||
$userstatic->lastname=$tab[$i]['lastname'];
|
|
||||||
$userstatic->firstname=$tab[$i]['firstname'];
|
|
||||||
$userstatic->photo=$tab[$i]['photo'];
|
|
||||||
$userstatic->login=$tab[$i]['login'];
|
|
||||||
echo $userstatic->getNomUrl(-1);
|
echo $userstatic->getNomUrl(-1);
|
||||||
}
|
}
|
||||||
if ($tab[$i]['source']=='external')
|
if ($tab[$i]['source']=='external')
|
||||||
{
|
{
|
||||||
$contactstatic->id=$tab[$i]['id'];
|
$contactstatic->fetch($tab[$i]['id']);
|
||||||
$contactstatic->lastname=$tab[$i]['lastname'];
|
|
||||||
$contactstatic->firstname=$tab[$i]['firstname'];
|
|
||||||
echo $contactstatic->getNomUrl(1);
|
echo $contactstatic->getNomUrl(1);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
@ -223,16 +217,10 @@ if ($permission) {
|
|||||||
<?php
|
<?php
|
||||||
if ($tab[$i]['source']=='internal')
|
if ($tab[$i]['source']=='internal')
|
||||||
{
|
{
|
||||||
$userstatic->id=$tab[$i]['id'];
|
|
||||||
$userstatic->lastname=$tab[$i]['lastname'];
|
|
||||||
$userstatic->firstname=$tab[$i]['firstname'];
|
|
||||||
echo $userstatic->LibStatut($tab[$i]['statuscontact'],3);
|
echo $userstatic->LibStatut($tab[$i]['statuscontact'],3);
|
||||||
}
|
}
|
||||||
if ($tab[$i]['source']=='external')
|
if ($tab[$i]['source']=='external')
|
||||||
{
|
{
|
||||||
$contactstatic->id=$tab[$i]['id'];
|
|
||||||
$contactstatic->lastname=$tab[$i]['lastname'];
|
|
||||||
$contactstatic->firstname=$tab[$i]['firstname'];
|
|
||||||
echo $contactstatic->LibStatut($tab[$i]['statuscontact'],3);
|
echo $contactstatic->LibStatut($tab[$i]['statuscontact'],3);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user