Skip Menu |
 

This queue is for tickets about the Data-FormValidator CPAN distribution.

Maintainer(s)' notes

This is the bug queue for Data::FormValidator.

Report information
The Basics
Id: 58343
Status: new
Priority: 0/
Queue: Data-FormValidator

People
Owner: Nobody in particular
Requestors: JHANNAH [...] cpan.org
Cc: pbaker [...] omnihotels.com
AdminCc:

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



CC: pbaker [...] omnihotels.com
Subject: require_some numberic keys bug
Download (untitled) / with headers
text/plain 695b
Hi there, I think we found a bug. If you use numeric keys in a require_some grouping check() no longer behaves correctly. (Also, shouldn't t/09_require_some.t use check() instead of the deprecated validate()?) Below, a modified snippet of t/09_require_some.t that shows the bug. Thanks! j my $input_profile = { require_some => { testing_default_to_1 => [qw/one missing1 missing2/], '2_of_3_success' => [2,qw/1 2 3/], '2_of_3_fail' => [2,qw/foo bar zar/], }, }; my $validator = new Data::FormValidator({default => $input_profile}); my $input_hashref = { one => 1, 1 => 1, # NUMERIC KEY BUG? green => 1, };


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.