Update adherent.class.php
This commit is contained in:
parent
9a28c12781
commit
af4d3c5654
@ -563,19 +563,6 @@ class Adherent extends CommonObject
|
|||||||
$sql.= ", fk_user_mod = ".($user->id>0?$user->id:'null'); // Can be null because member can be create by a guest
|
$sql.= ", fk_user_mod = ".($user->id>0?$user->id:'null'); // Can be null because member can be create by a guest
|
||||||
$sql.= " WHERE rowid = ".$this->id;
|
$sql.= " WHERE rowid = ".$this->id;
|
||||||
|
|
||||||
$sql2 = "SELECT libelle";
|
|
||||||
$sql2.= " FROM ".MAIN_DB_PREFIX."adherent_type";
|
|
||||||
$sql2.= " WHERE rowid = ".$this->typeid;
|
|
||||||
|
|
||||||
$resql2 = $this->db->query($sql2);
|
|
||||||
if($resql2)
|
|
||||||
{
|
|
||||||
while ($obj=$this->db->fetch_object($resql2))
|
|
||||||
{
|
|
||||||
$this->type=$obj->libelle;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
dol_syslog(get_class($this)."::update update member", LOG_DEBUG);
|
dol_syslog(get_class($this)."::update update member", LOG_DEBUG);
|
||||||
$resql = $this->db->query($sql);
|
$resql = $this->db->query($sql);
|
||||||
if ($resql)
|
if ($resql)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user