Skip to content
Snippets Groups Projects
Commit 87fc27c7 authored by Jean-François Ferry's avatar Jean-François Ferry
Browse files

Avoid missing class error for fetch_thirdparty method

parent c73f4a14
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment