This commit is contained in:
Laurent Destailleur 2026-04-07 04:19:19 +02:00
parent 28e1c63750
commit 5ea8fb490b

View file

@ -261,7 +261,7 @@ if ($action == 'presend') {
$liste['thirdparty'] = $fuser->getFullName($outputlangs)." <".$fuser->email.">";
} else {
// For example if element is project
if (!empty($object->socid) && $object->socid > 0 && !is_object($object->thirdparty) && method_exists($object, 'fetch_thirdparty')) {
if (property_exists($object, 'socid') && !empty($object->socid) && $object->socid > 0 && !is_object($object->thirdparty) && method_exists($object, 'fetch_thirdparty')) {
$object->fetch_thirdparty();
}
if (is_object($object->thirdparty)) {