zapier api

This commit is contained in:
Frédéric FRANCE 2019-09-30 22:09:11 +02:00
parent b74a93e194
commit b8dea76760
No known key found for this signature in database
GPG Key ID: 06809324E4B2ABC1
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);
}