Skip to content
Browse files

fix for [cpan #63346]

  • Loading branch information...
1 parent 11be8e5 commit 326eb5acc4b0cb3833b9eb592223f322b28829ea @moritz committed Nov 26, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/DBIx/Class/Tree/NestedSet.pm
View
2 lib/DBIx/Class/Tree/NestedSet.pm
@@ -298,7 +298,7 @@ sub _attach_node {
my ($root, $left, $right, $level) = $self->_get_columns;
# $self cannot be a descendant of $node or $node itself
- if ($self->$left >= $node->$left && $self->$right <= $node->$right) {
+ if ($self->$root == $node->$root && $self->$left >= $node->$left && $self->$right <= $node->$right) {
croak("Cannot _attach_node to it's own descendant ");
}

0 comments on commit 326eb5a

Please sign in to comment.
Something went wrong with that request. Please try again.