Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 46138
Status: resolved
Worked: 4 hours (240 min)
Priority: 0/
Queue: HTML-FormHandler

Owner: gshank [...]
Requestors: pete [...]

Bug Information
Severity: Important
Broken in: 0.22
Fixed in: (no value)

Subject: Method 'fields' on compound field returns empty list on subsequent instantiation of form object
Download (untitled) / with headers
text/plain 212b
Please see attached test. If the form is instantiated more than once the subsequent instances compound fields do not return their sub-fields. This particularly affects compound fields in persistent applications.
#!/usr/bin/perl use strict; use Test::More tests => 2; { package MyForm; use HTML::FormHandler::Moose; extends qw(HTML::FormHandler); has_field 'foo' => ( label => 'Foo', type => 'Compound', ); has_field '' => ( label => 'Bar', type => 'Text', ); has_field 'foo.baz' => ( label => 'Baz', type => 'Text', ); no HTML::FormHandler::Moose; } for (1 .. 2) { my $form = MyForm->new; is_deeply( [ map { $_->full_name } @{ $form->field('foo')->fields } ], [ '', 'foo.baz' ], 'Compound sub fields', ); }
Download (untitled) / with headers
text/plain 220b
This has been fixed in trunk. Please try the current version to verify at: (The trunk version will require installation of DBIx::Class::ResultSet::RecursiveUpdate).
This has been fixed in version 0.23

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to