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
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.
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