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

People
Owner: Nobody in particular
Requestors: pete [...] cubabit.net
Cc:
AdminCc:

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



Subject: Cannot use numbers in field names and also use 'default_' method
If I have a field named something like 'event_1_date' then I cannot use a method named 'default_event_1_date' to set the default value because the code in '_comp_default_meth' replaces _\d+_ with a _.
Fixed with commit to git repo changing regex used in constructing default method names. A workaround is to explicitly set the method names using 'set_validate' => 'my_method', 'set_default' => 'my_default_method', etc.