fix task document banner without thirdparty FATAL

This commit is contained in:
florian HENRY 2019-12-17 10:49:56 +01:00
parent 31a60ff30b
commit bb6523b75d

View File

@ -256,10 +256,12 @@ if ($object->id > 0)
$morehtmlref.='<br>'; $morehtmlref.='<br>';
// Third party // Third party
if ($projectstatic->thirdparty->id > 0) {
$morehtmlref .= $langs->trans("ThirdParty") . ': '; $morehtmlref .= $langs->trans("ThirdParty") . ': ';
$morehtmlref .= $projectstatic->thirdparty->getNomUrl(1); $morehtmlref .= $projectstatic->thirdparty->getNomUrl(1);
$morehtmlref .= '</div>'; $morehtmlref .= '</div>';
} }
}
dol_banner_tab($object, 'ref', $linkback, 1, 'ref', 'ref', $morehtmlref, $param); dol_banner_tab($object, 'ref', $linkback, 1, 'ref', 'ref', $morehtmlref, $param);