Skip to content

Commit

Permalink
Containers owned by other containers aren't subcontainers
Browse files Browse the repository at this point in the history
  • Loading branch information
rafl committed Aug 29, 2013
1 parent e6f5390 commit d601dd7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Bread/Board.pm
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ sub container ($;$$) {

# if we already have a root
# container, then we are a
# subcontainer of it ...
if (defined $CC) {
# subcontainer of it, unless
# we already have a parent
if (defined $CC && !$c->has_parent) {
$CC->add_sub_container($c);
}

Expand Down

0 comments on commit d601dd7

Please sign in to comment.