diff --git a/htdocs/commonobject.class.php b/htdocs/commonobject.class.php index da8b5e682e4..03453205c94 100644 --- a/htdocs/commonobject.class.php +++ b/htdocs/commonobject.class.php @@ -339,7 +339,7 @@ class CommonObject function fetch_client() { $client = new Societe($this->db); - $client->fetch($this->societe_id); + $client->fetch($this->socidp); $this->client = $client; }