fixed removing of postalAddress and facsimileTelephoneNumber
This commit is contained in:
parent
7458053b5e
commit
d6d5c5954d
|
@ -401,6 +401,15 @@ class inetOrgPerson extends baseModule {
|
||||||
unset($return[$_SESSION[$this->base]->dn]['add']['userPassword']);
|
unset($return[$_SESSION[$this->base]->dn]['add']['userPassword']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// postalAddress and facsimileTelephoneNumber need special removing
|
||||||
|
if (isset($return[$_SESSION[$this->base]->dn]['remove']['postalAddress'])) {
|
||||||
|
$return[$_SESSION[$this->base]->dn]['modify']['postalAddress'] = array();
|
||||||
|
unset($return[$_SESSION[$this->base]->dn]['remove']['postalAddress']);
|
||||||
|
}
|
||||||
|
if (isset($return[$_SESSION[$this->base]->dn]['remove']['facsimileTelephoneNumber'])) {
|
||||||
|
$return[$_SESSION[$this->base]->dn]['modify']['facsimileTelephoneNumber'] = array();
|
||||||
|
unset($return[$_SESSION[$this->base]->dn]['remove']['facsimileTelephoneNumber']);
|
||||||
|
}
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue