Fix: add lastname
This commit is contained in:
parent
35b290a7df
commit
76c89aed9b
@ -1956,9 +1956,12 @@ class Adherent extends CommonObject
|
|||||||
// Object classes
|
// Object classes
|
||||||
$info["objectclass"]=explode(',',$conf->global->LDAP_MEMBER_OBJECT_CLASS);
|
$info["objectclass"]=explode(',',$conf->global->LDAP_MEMBER_OBJECT_CLASS);
|
||||||
|
|
||||||
$this->fullname=$this->getFullName($langs);
|
$this->fullname=$this->getFullName($langs);
|
||||||
// For avoid ldap error when firstname and lastname is empty
|
// For avoid ldap error when firstname and lastname are empty
|
||||||
if ($this->morphy == 'mor' && empty($this->fullname)) $this->fullname = $this->societe;
|
if ($this->morphy == 'mor' && empty($this->fullname)) {
|
||||||
|
$this->fullname = $this->societe;
|
||||||
|
$this->lastname = $this->societe;
|
||||||
|
}
|
||||||
|
|
||||||
// Member
|
// Member
|
||||||
if ($this->fullname && ! empty($conf->global->LDAP_MEMBER_FIELD_FULLNAME)) $info[$conf->global->LDAP_MEMBER_FIELD_FULLNAME] = $this->fullname;
|
if ($this->fullname && ! empty($conf->global->LDAP_MEMBER_FIELD_FULLNAME)) $info[$conf->global->LDAP_MEMBER_FIELD_FULLNAME] = $this->fullname;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user