Subject: | problem with $data->children |
I'm migrating from HTML::PopupTreeSelect to Dynamic, and found a problem
when envoking with the same parameters.
In code
if( ref $data eq 'ARRAY' ) {
$parent = $self->_find_node($data, $id);
} elsif( ref $data eq 'HASH' ) {
$parent = $self->_find_node($data->children, $id);
}
$data->children raises error, because $data isn't an object, just a hash.
So it should be changed to $self->_find_node($data->{'children'}, $id);
, then it works fine.
--
Serguei Trouchelle