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:
commit
162d271884
@ -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