[NestedSet] fixed moving between trees #43

Closed
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+1 −2
Split
@@ -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':