Permalink
Browse files

[NestedSet] fixed moving between trees

  • Loading branch information...
1 parent dcec9a6 commit 1b9061d5682992628ab48c508318d25055095a61 @1ed committed Oct 26, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/Doctrine/Node/NestedSet.php
@@ -608,11 +608,10 @@ private function _moveBetweenTrees(Doctrine_Record $dest, $newLeftValue, $moveTy
// Set new root id for this node
$this->setRootValue($newRoot);
- $this->record->save();
-
// Insert this node as a new node
$this->setRightValue(0);
$this->setLeftValue(0);
+ $this->record->save();
switch ($moveType) {
case 'moveAsPrevSiblingOf':

0 comments on commit 1b9061d

Please sign in to comment.