FIX time.php crashed without project id in param
This commit is contained in:
parent
2d7916f77d
commit
ed8e08b78a
@ -442,7 +442,7 @@ if (($id > 0 || ! empty($ref)) || $projectidforalltimes > 0)
|
|||||||
else $object->next_prev_filter=" fk_projet = ".$projectstatic->id;
|
else $object->next_prev_filter=" fk_projet = ".$projectstatic->id;
|
||||||
|
|
||||||
$morehtmlref='';
|
$morehtmlref='';
|
||||||
|
|
||||||
// Project
|
// Project
|
||||||
if (empty($withproject))
|
if (empty($withproject))
|
||||||
{
|
{
|
||||||
@ -450,10 +450,12 @@ if (($id > 0 || ! empty($ref)) || $projectidforalltimes > 0)
|
|||||||
$morehtmlref.=$langs->trans("Project").': ';
|
$morehtmlref.=$langs->trans("Project").': ';
|
||||||
$morehtmlref.=$projectstatic->getNomUrl(1);
|
$morehtmlref.=$projectstatic->getNomUrl(1);
|
||||||
$morehtmlref.='<br>';
|
$morehtmlref.='<br>';
|
||||||
|
|
||||||
// Third party
|
// Third party
|
||||||
$morehtmlref.=$langs->trans("ThirdParty").': ';
|
$morehtmlref.=$langs->trans("ThirdParty").': ';
|
||||||
$morehtmlref.=$projectstatic->thirdparty->getNomUrl(1);
|
if (!empty($projectstatic->thirdparty)) {
|
||||||
|
$morehtmlref.=$projectstatic->thirdparty->getNomUrl(1);
|
||||||
|
}
|
||||||
$morehtmlref.='</div>';
|
$morehtmlref.='</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user