Merge pull request #7373 from atm-arnaud/FIX_time_without_projectid
FIX time.php crashed without project id in param if project isn't linked to a company
This commit is contained in:
commit
fd7602382c
@ -452,8 +452,10 @@ if (($id > 0 || ! empty($ref)) || $projectidforalltimes > 0)
|
|||||||
$morehtmlref.='<br>';
|
$morehtmlref.='<br>';
|
||||||
|
|
||||||
// Third party
|
// Third party
|
||||||
$morehtmlref.=$langs->trans("ThirdParty").': ';
|
$morehtmlref.=$langs->trans("ThirdParty").': ';
|
||||||
$morehtmlref.=$projectstatic->thirdparty->getNomUrl(1);
|
if (is_object($projectstatic->thirdparty)) {
|
||||||
|
$morehtmlref.=$projectstatic->thirdparty->getNomUrl(1);
|
||||||
|
}
|
||||||
$morehtmlref.='</div>';
|
$morehtmlref.='</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -462,7 +464,7 @@ if (($id > 0 || ! empty($ref)) || $projectidforalltimes > 0)
|
|||||||
print '<div class="fichecenter">';
|
print '<div class="fichecenter">';
|
||||||
print '<div class="fichehalfleft">';
|
print '<div class="fichehalfleft">';
|
||||||
|
|
||||||
print '<div class="underbanner clearboth"></div>';
|
print '<div class="underbanner clearboth"></div>';
|
||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
|
|
||||||
// Date start - Date end
|
// Date start - Date end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user