Merge pull request #17822 from frederic34/zapier_create_contacts

add more capabilities for zapier
This commit is contained in:
Laurent Destailleur
2021-06-11 19:51:01 +02:00
committed by GitHub
13 changed files with 758 additions and 14 deletions

View File

@@ -75,7 +75,7 @@ class Contacts extends DolibarrApi
throw new RestException(401, 'No permission to read contacts');
}
if ($id == 0) {
if ($id === 0) {
$result = $this->contact->initAsSpecimen();
} else {
$result = $this->contact->fetch($id);