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

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

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



Subject: empty input value doesn't set the default value
Download (untitled) / with headers
text/plain 250b
If the user submits an empty field, $result->is_valid is true, $result->has_input is also true (maybe because of other fields) but calling $result->field('startdate')->value returns undef. That might be an erroneous defined vs. true check somewhere.
Download (untitled) / with headers
text/plain 250b
This is the way that it's supposed to work. Values returned by submitting a form take precedence over defaults. Defaults are used when first displaying the form... If a field has a value then, that value will be submitted unless it's been removed.
closing this old bug report


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.