LSldapObject : fix removing old RDN value after object renaming

This commit is contained in:
Benjamin Renard 2019-02-26 18:48:45 +01:00
parent cf4502ac3b
commit 1dec2cc4f6

View file

@ -603,6 +603,10 @@ class LSldapObject {
}
$this -> dn = $newDn;
$this -> oldDn = $oldDn;
// PHP Net_LDAP2 does not remove old RDN value : replace RDN value
$submitData[$attr -> name] = $attr -> getUpdateData();
if (!$this -> fireEvent('after_rename')) {
LSerror :: addErrorCode('LSldapObject_17');
return;