fix missing fetch entity in don.class.php (#35075)
This commit is contained in:
parent
1a630cef85
commit
fc2786cd35
1 changed files with 3 additions and 2 deletions
|
|
@ -668,7 +668,7 @@ class Don extends CommonObject
|
|||
*/
|
||||
public function fetch($id, $ref = '')
|
||||
{
|
||||
$sql = "SELECT d.rowid, d.datec, d.date_valid, d.tms as datem, d.datedon,";
|
||||
$sql = "SELECT d.rowid, d.entity, d.datec, d.date_valid, d.tms as datem, d.datedon,";
|
||||
$sql .= " d.fk_soc as socid, d.firstname, d.lastname, d.societe, d.amount, d.fk_statut as status, d.address, d.zip, d.town, ";
|
||||
$sql .= " d.fk_country, d.public, d.amount, d.fk_payment, d.paid, d.note_private, d.note_public, d.email, d.phone, ";
|
||||
$sql .= " d.phone_mobile, d.fk_projet as fk_project, d.model_pdf,";
|
||||
|
|
@ -692,7 +692,8 @@ class Don extends CommonObject
|
|||
if ($this->db->num_rows($resql)) {
|
||||
$obj = $this->db->fetch_object($resql);
|
||||
|
||||
$this->id = $obj->rowid;
|
||||
$this->id = $obj->rowid;
|
||||
$this->entity = $obj->entity;
|
||||
$this->ref = $obj->rowid;
|
||||
$this->date_creation = $this->db->jdate($obj->datec);
|
||||
$this->datec = $this->db->jdate($obj->datec);
|
||||
|
|
|
|||
Loading…
Reference in a new issue