forked from Wavyzz/dolibarr
FIX: also check if there is a method $object->fetch_thirdparty() before calling it
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user