diff --git a/src/NestedSetsBehavior.php b/src/NestedSetsBehavior.php index c2a6698..5f12921 100644 --- a/src/NestedSetsBehavior.php +++ b/src/NestedSetsBehavior.php @@ -1250,7 +1250,7 @@ protected function moveNode(ActiveRecord $node, int $value, int $depth): void ); } - $this->shiftLeftRightAttribute($rightValue + 1, -$delta); + $this->shiftLeftRightAttribute($rightValue, -$delta); } else { $leftAttribute = $db->quoteColumnName($this->leftAttribute); $rightAttribute = $db->quoteColumnName($this->rightAttribute);