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: 65243
Status: resolved
Priority: 0/
Queue: HTML-FormHandler

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

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



Subject: $form->value returns undef if no values are submitted
Download (untitled) / with headers
text/plain 256b
If you instantiate a form, then call ->process, and finally call ->values, it returns a single item, undef. This is really problematic since the documentation says it returns a hashref. Presumably you just need to set the default to be an empty hashref.
Download (untitled) / with headers
text/plain 412b
On Sat Jan 29 12:48:30 2011, DROLSKY wrote: Show quoted text
> If you instantiate a form, then call ->process, and finally call > ->values, it returns a single item, undef. > > This is really problematic since the documentation says it returns a > hashref. > > Presumably you just need to set the default to be an empty hashref.
To clarify, this happens when the params passed to the form in the ->process is an empty hashref.
Changed to return empty hashref instead of undef. Fixed in 0.33001


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

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.