Merge pull request #1941 from jfefe/patch-3
Avoid missing class error for fetch_thirdparty method
This commit is contained in:
commit
2aeb0f4f5b
@ -579,6 +579,8 @@ abstract class CommonObject
|
|||||||
if (!class_exists('Societe'))
|
if (!class_exists('Societe'))
|
||||||
require_once DOL_DOCUMENT_ROOT.'/societe/class/societe.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/societe/class/societe.class.php';
|
||||||
|
|
||||||
|
require_once DOL_DOCUMENT_ROOT.'/societe/class/societe.class.php';
|
||||||
|
|
||||||
$thirdparty = new Societe($this->db);
|
$thirdparty = new Societe($this->db);
|
||||||
$result=$thirdparty->fetch($this->socid);
|
$result=$thirdparty->fetch($this->socid);
|
||||||
$this->client = $thirdparty; // deprecated
|
$this->client = $thirdparty; // deprecated
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user