fix task contact card without withproject parameters
This commit is contained in:
parent
a46362a71f
commit
5c727c077b
@ -303,6 +303,7 @@ if ($id > 0 || ! empty($ref))
|
||||
// Project
|
||||
if (empty($withproject))
|
||||
{
|
||||
$result=$projectstatic->fetch($object->fk_project);
|
||||
$morehtmlref.='<div class="refidno">';
|
||||
$morehtmlref.=$langs->trans("Project").': ';
|
||||
$morehtmlref.=$projectstatic->getNomUrl(1);
|
||||
@ -310,7 +311,11 @@ if ($id > 0 || ! empty($ref))
|
||||
|
||||
// Third party
|
||||
$morehtmlref.=$langs->trans("ThirdParty").': ';
|
||||
$morehtmlref.=$projectstatic->thirdparty->getNomUrl(1);
|
||||
if($projectstatic->socid>0) {
|
||||
$projectstatic->fetch_thirdparty();
|
||||
$morehtmlref.=$projectstatic->thirdparty->getNomUrl(1);
|
||||
}
|
||||
|
||||
$morehtmlref.='</div>';
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user