Merge pull request #10604 from ptibogxiv/patch-115

FIX: count of ref in an contact object API
This commit is contained in:
Laurent Destailleur 2019-02-14 16:19:02 +01:00 committed by GitHub
commit 6c3e2446f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,6 +74,7 @@ class Contacts extends DolibarrApi
}
$result = $this->contact->fetch($id);
$this->contact->load_ref_elements();
if (!$result)
{
throw new RestException(404, 'Contact not found');