Ticket #1023 (closed defect: fixed)

Opened 14 months ago

Last modified 14 months ago

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

NestedSet.php.patch (1.8 KB) - added by lee.saferite 14 months ago.
Patch to show how problem could be solved

Change History

Changed 14 months ago by lee.saferite

Patch to show how problem could be solved

Changed 14 months ago by romanb

  • status changed from new to closed
  • resolution set to fixed

(In [4343]) Fixed #1023. Thanks for ticket & patch.

Changed 14 months ago by romanb

(In [4344]) Fixed #1023. Thanks for ticket & patch.

Changed 14 months ago by jwage

  • milestone changed from 0.11.2 to 0.11.0
Note: See TracTickets for help on using tickets.