On Sat, Mar 18, 2006 at 08:08:53PM -0500, Guest via RT wrote:
Show quoted text>
> Sat Mar 18 20:08:53 2006: Request 18236 was acted upon.
> Transaction: Ticket created by guest
> Queue: Data-FormValidator
> Subject: _arrayify will return an empty array for an emtpy string value
> Owner: Nobody
> Requestors: kevin@theconfused.co.uk
> Status: new
> Ticket <URL:
http://rt.cpan.org/Ticket/Display.html?id=18236 >
>
>
> The following line occurs in Class::DBI::FromForm:
>
> $them->$col( $results->valid($col));
>
> If the value of the column is '', which will occur when the column needs
> to be cleared, then, because the result should be in an array context,
> valid will return () in stead of the expected ( '' ).
>
> Not sure if this is working as intended or a bug.
Kevn, to clarify this, please create a new test case for the DFV test
suite. DFV also have global filters, which would treat '' as blank, and
turn it into 'undef'.
Your test will clarify the behavior.
Also, cross reference to the docs for valid() to see if there is
documentation for this case and if it is consistent.
Mark