mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-11 18:32:32 +01:00
Avoid missing class error for fetch_thirdparty method
This commit is contained in:
@@ -576,6 +576,9 @@ abstract class CommonObject
|
||||
|
||||
if (empty($this->socid)) return 0;
|
||||
|
||||
if (!class_exists('Societe'))
|
||||
require_once DOL_DOCUMENT_ROOT.'/societe/class/societe.class.php';
|
||||
|
||||
$thirdparty = new Societe($this->db);
|
||||
$result=$thirdparty->fetch($this->socid);
|
||||
$this->client = $thirdparty; // deprecated
|
||||
|
||||
Reference in New Issue
Block a user