Fix count of ref in an contact object API

This commit is contained in:
ptibogxiv 2019-02-14 16:00:45 +01:00 committed by GitHub
parent 8f493bfbdc
commit 0aeaac7c5f
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');