From 0aeaac7c5f95ef5f8422b3c92a3e2138c819bf72 Mon Sep 17 00:00:00 2001 From: ptibogxiv Date: Thu, 14 Feb 2019 16:00:45 +0100 Subject: [PATCH] Fix count of ref in an contact object API --- htdocs/societe/class/api_contacts.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/societe/class/api_contacts.class.php b/htdocs/societe/class/api_contacts.class.php index 152f9aa8665..7f24713913f 100644 --- a/htdocs/societe/class/api_contacts.class.php +++ b/htdocs/societe/class/api_contacts.class.php @@ -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');