Changeset 7130
- Timestamp:
- 02/25/08 19:43:21 (16 months ago)
- Location:
- lang/perl/DBIx-Class-Tree-NestedSet/trunk
- Files:
-
- 2 modified
-
Changes (modified) (1 diff)
-
lib/DBIx/Class/Tree/NestedSet.pm (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/DBIx-Class-Tree-NestedSet/trunk/Changes
r3385 r7130 1 1 Revision history for Perl extension DBIx::Class::Tree::NestedSet 2 3 0.03 Mon Feb 25 19:31:00 2008 4 - fixed misspelled method name (is_reaf => is_leaf) 5 - fixed attach_child & attach_sbling returned last node result 6 (Thanks to Kevin Baker) 2 7 3 8 0.02 Fri Dec 21 06:34:20 2007 -
lang/perl/DBIx-Class-Tree-NestedSet/trunk/lib/DBIx/Class/Tree/NestedSet.pm
r3385 r7130 4 4 use warnings; 5 5 use 5.8.1; 6 our $VERSION = '0.0 2';6 our $VERSION = '0.03'; 7 7 8 8 use base qw/ DBIx::Class /; … … 155 155 if ($found) { 156 156 my $children = $self->children; 157 my $self_parent = $self->parent;158 157 while (my $child = $children->next) { 159 158 $child->parent( $self_parent ); … … 241 240 my $return = 1; 242 241 foreach my $child (@_) { 243 $return = $child->reparent( $self );242 $return &= $child->reparent( $self ); 244 243 } 245 244 … … 284 283 my $return = 1; 285 284 foreach my $node (@_) { 286 $return = $node->reparent( $self->parent );285 $return &= $node->reparent( $self->parent ); 287 286 } 288 287 return $return; 289 288 } 290 289 291 sub is_ reaf {290 sub is_leaf { 292 291 my $self = shift; 293 292 … … 305 304 my $self = shift; 306 305 307 return ( $self->is_ reaf or $self->is_root ) ? 0 : 1;306 return ( $self->is_leaf or $self->is_root ) ? 0 : 1; 308 307 } 309 308
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)