Re: possible bug in CGI::FB::Field
David Baird <dave <at> riverside-cms.co.uk>
2005-08-02 22:18:08 GMT
Nathan Wiger wrote:
> David Baird wrote:
>
>> Hi,
>>
>> In CGI::FB::Field::value(), line 186, a manually supplied value is
>> passed through cleanargs().
>> This has the effect of changing a single value into a hashref, and
>> has the side effect of turning on the 'multiple' flag in a select
>> widget.
>
>
> Ok, I see where you're pointing. Can you send me a snippet that
> illustrates this?
I can't quite convince myself this is a bug. Seems to be that if I
partially build a field, and then later on, try to set its value, the
problems occur. I can get around this in my app, which suggests it's my
usage that's wrong. Still, cases 3 and 4 in the two scripts attached
seemed to be almost reasonable behaviour, and they show the problem.
Cheers,
d.
#!/usr/bin/perl -I.
(Continue reading)