diff --git a/htdocs/societe/class/api_contacts.class.php b/htdocs/societe/class/api_contacts.class.php index b2adc8ce5ff..f6e825b2190 100644 --- a/htdocs/societe/class/api_contacts.class.php +++ b/htdocs/societe/class/api_contacts.class.php @@ -75,7 +75,7 @@ class Contacts extends DolibarrApi throw new RestException(401, 'No permission to read contacts'); } if ($id ==0) { - $result = $this->contact->intiAsSpecimen(); + $result = $this->contact->initAsSpecimen(); } else { $result = $this->contact->fetch($id); } diff --git a/htdocs/societe/class/api_thirdparties.class.php b/htdocs/societe/class/api_thirdparties.class.php index 919961b4f8f..3c622a6769f 100644 --- a/htdocs/societe/class/api_thirdparties.class.php +++ b/htdocs/societe/class/api_thirdparties.class.php @@ -77,7 +77,7 @@ class Thirdparties extends DolibarrApi throw new RestException(401); } if ($id ==0) { - $result = $this->company->intiAsSpecimen(); + $result = $this->company->initAsSpecimen(); } else { $result = $this->company->fetch($id); }