Merge pull request #12724 from atm-florian/9.0

fix: task document tab FATAL without thirdparty
This commit is contained in:
Laurent Destailleur 2019-12-17 12:14:55 +01:00 committed by GitHub
commit cdb730cf4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -257,7 +257,9 @@ if ($object->id > 0)
// Third party // Third party
$morehtmlref .= $langs->trans("ThirdParty") . ': '; $morehtmlref .= $langs->trans("ThirdParty") . ': ';
if (is_object($projectstatic->thirdparty) && $projectstatic->thirdparty->id > 0) {
$morehtmlref .= $projectstatic->thirdparty->getNomUrl(1); $morehtmlref .= $projectstatic->thirdparty->getNomUrl(1);
}
$morehtmlref .= '</div>'; $morehtmlref .= '</div>';
} }