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

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');