Skip to content

Commit

Permalink
Merge pull request #1973 from jfefe/patch-6
Browse files Browse the repository at this point in the history
 Avoid missing class error for fetch_thirdparty method
  • Loading branch information
eldy committed Oct 30, 2014
2 parents a94f7dc + 29db45c commit aac24c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions htdocs/core/class/commonobject.class.php
Expand Up @@ -575,6 +575,9 @@ function fetch_thirdparty()
global $conf;

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);
Expand Down

0 comments on commit aac24c8

Please sign in to comment.