Fix for when renaming entries only changes case (https://bugs.launchpad.net/bugs/384157)
This commit is contained in:
parent
df404d435a
commit
a5b9e43a57
@ -225,7 +225,8 @@ abstract class Tree {
|
|||||||
$dnlowerNEW = $this->indexDN($dnNEW);
|
$dnlowerNEW = $this->indexDN($dnNEW);
|
||||||
|
|
||||||
$this->entries[$dnlowerNEW] = $this->entries[$dnlowerOLD];
|
$this->entries[$dnlowerNEW] = $this->entries[$dnlowerOLD];
|
||||||
unset($this->entries[$dnlowerOLD]);
|
if ($dnlowerOLD != $dnlowerNEW)
|
||||||
|
unset($this->entries[$dnlowerOLD]);
|
||||||
$this->entries[$dnlowerNEW]->rename($dnNEW);
|
$this->entries[$dnlowerNEW]->rename($dnNEW);
|
||||||
|
|
||||||
# Update the parent's children
|
# Update the parent's children
|
||||||
|
Loading…
Reference in New Issue
Block a user