fix task contact card without withproject parameters

This commit is contained in:
alexis Algoud 2018-05-16 16:34:19 +02:00
parent a46362a71f
commit 5c727c077b

View File

@ -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>';
}