mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
Merge pull request #10604 from ptibogxiv/patch-115
FIX: count of ref in an contact object API
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user