Ticket #596 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Bug in Nested set Peer

Reported by: ademas Owned by: heltem
Priority: normal Milestone: 1.3
Component: Generator - Nested Set Version: 1.3.0beta4
Severity: major Keywords: Nestedset Peer moveToNextSiblingOf
Cc:

Description

Notice: Undefined variable: parent in C:\localhost\pvs\lib\model\om\BaseMenuNestedSetPeer.php on line 367

in:

public static function moveToNextSiblingOf(NodeObject $dest, NodeObject $node, PropelPDO $con = null) {

........

Update all loaded nodes self::updateLoadedNode($parent, 2, $con);

}

I replaced $parent with $dest->retrieveParent() and seems that it works ok. The same with moveToPrevSiblingOf()

Change History

comment:1 Changed 3 years ago by heltem

  • Status changed from new to assigned

Right bug catch.

comment:2 Changed 3 years ago by heltem

  • Status changed from assigned to closed
  • Resolution set to fixed

(In [990]) Replace undefined $parent variable reference by $dest->retrieveParent() call in moveToNextSiblingOf() and moveToPrevSiblingOf(). (Thanks to ademas) Closes #596

Note: See TracTickets for help on using tickets.