MDL-39801 navigation_node::remove does not allow to insert nodes afterwards
This commit is contained in:
committed by
Eloy Lafuente (stronk7)
parent
d60d1d0db8
commit
fc97a877fd
@@ -901,6 +901,7 @@ class navigation_node_collection implements IteratorAggregate {
|
||||
foreach ($this->collection as $colkey => $node) {
|
||||
if ($node->key === $key && $node->type == $type) {
|
||||
unset($this->collection[$colkey]);
|
||||
$this->collection = array_values($this->collection);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user