CC: | pbaker [...] omnihotels.com |
Subject: | require_some numberic keys bug |
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,
};