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: 6465
Status: resolved
Priority: 0/
Queue: Data-FormValidator

People
Owner: Nobody in particular
Requestors: mark [...] summersault.com
Cc:
AdminCc:

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



Subject: Value-based dependency check fails in some cases
DFV supports making extra fields required based on the value of some field, using a syntax like this: Show quoted text
> dependencies => { > cc_type => { > Check => [qw( cc_num )], > Visa => [qw( cc_num cc_exp cc_name )], > }, > },
In some cases, a single valued input for "cc_type" is being converted to an arrayref with only one value. In this case, the check fails when it shouldn't. Single-valued arrayrefs should be handled better in this case.