Skip Menu |

This queue is for tickets about the HTML-PopupTreeSelect-Dynamic CPAN distribution.

Report information
The Basics
Id: 28681
Status: new
Priority: 0/
Queue: HTML-PopupTreeSelect-Dynamic

People
Owner: Nobody in particular
Requestors: stro [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.2
Fixed in: (no value)



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