Ticket #1023 (closed defect: fixed)
NestedSet problem
| Reported by: | lee.saferite | Owned by: | romanb |
|---|---|---|---|
| Priority: | major | Milestone: | 0.11.0 |
| Component: | NestedSet | Version: | 0.11.0 |
| Severity: | Keywords: | NestedSet insertAsParentOf level | |
| Cc: | Has Test: | ||
| Status: | Has Patch: |
Description
Doctrine_Node_NestedSet::insertAsParentOf() is broken.
When you insert a node as the parent of another node, it sets the level of the newly inserted node to the child's level - 1.
This is wrong.
It should set the level of the parent node to the old level of the child and increment the child and it's descendants level by one.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.