Skip to content
Snippets Groups Projects
Commit 2aeb0f4f authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge pull request #1941 from jfefe/patch-3

Avoid missing class error for fetch_thirdparty method
parents 606a3f99 6a4468d9
No related branches found
No related tags found
No related merge requests found
......@@ -579,6 +579,8 @@ abstract class CommonObject
if (!class_exists('Societe'))
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);
$result=$thirdparty->fetch($this->socid);
$this->client = $thirdparty; // deprecated
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment