diff --git a/htdocs/commonobject.class.php b/htdocs/commonobject.class.php index 6bc4505f3cc..5a19181d63f 100644 --- a/htdocs/commonobject.class.php +++ b/htdocs/commonobject.class.php @@ -319,6 +319,19 @@ class CommonObject return $result; } + + /** + * \brief Retourne le détail d'un contact + * \param id id du contact + * \return array détail du contact + */ + function fetch_contact($id) + { + $idcontact = $id; + $contact = new Contact($this->db); + $contact->fetch($idcontact); + $this->contact = $contact; + } }