From 2f4dc5347389ce78ae58567c0c23d09342c65fcd Mon Sep 17 00:00:00 2001 From: minima Date: Thu, 24 Feb 2005 19:54:15 +0000 Subject: [PATCH] do it properly! --- perl/Thingy/Rt.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/perl/Thingy/Rt.pm b/perl/Thingy/Rt.pm index 8ba7ee00..86c26ea8 100644 --- a/perl/Thingy/Rt.pm +++ b/perl/Thingy/Rt.pm @@ -98,7 +98,9 @@ sub handle_cf if ($thing->{user}) { $origin = $thing->{user}; my $ref = Route::Node::get($origin); - unless ($ref) { + if ($ref) { + $parent = $ref; + } else { # auto vivify a node that has come that we don't know about push @pc19, $parent->add($origin, 0, 1); $parent = Route::Node::get($origin); # reparent to me now. -- 2.43.0