Merge pull request #8803 from atm-alexis/7.0_fix_task_contact_card_withoutproject

FIX 7.0 task contact card without withproject parameters
This commit is contained in:
Laurent Destailleur 2018-05-18 11:29:11 +02:00 committed by GitHub
commit 162d271884
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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