mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
ajout de la fonction fetch_contact pour rcuprer le dtail d'un contact propal, commande,
facture...
This commit is contained in:
parent
4b6b693aa3
commit
fc7dfdf863
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user