fixed removing of postalAddress and facsimileTelephoneNumber

This commit is contained in:
Roland Gruber 2005-11-12 10:18:54 +00:00
parent 7458053b5e
commit d6d5c5954d
1 changed files with 9 additions and 0 deletions

View File

@ -401,6 +401,15 @@ class inetOrgPerson extends baseModule {
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;
}