2
0
forked from Wavyzz/dolibarr

FIX: also check if there is a method $object->fetch_thirdparty() before calling it

This commit is contained in:
Florian Mortgat
2020-10-22 15:09:48 +02:00
parent 509819c119
commit 56db7d6c64

View File

@@ -180,7 +180,7 @@ if ($action == 'presend')
}
else
{
if (!empty($object->socid) && empty($object->thirdparty)) {
if (!empty($object->socid) && empty($object->thirdparty) && method_exists($object, 'fetch_thirdparty')) {
$object->fetch_thirdparty();
}
if (is_object($object->thirdparty))