[ic] Form.pm option_widget

Mike Heins mike at perusion.com
Wed Sep 24 02:39:42 EDT 2003


Quoting Paul Vinciguerra (pvinci at vinciguerra.com):
> While digging through the sources, I came across the following piece of code
> in lib/Vend/Form.pm.  Is the last line correct, or should it be:
> 
>         $val = Vend::Interpolate::filter_value($opt->{filter}, $val);
> 
> ---------------------------------------
> sub option_widget {
>         my($opt) = @_;
>         my($name, $val) = ($opt->{name}, $opt->{value});
> 
>         my $width = $opt->{width} || 16;
>         $opt->{filter} = 'option_format'
>                 unless length($opt->{filter});
>         $val = Vend::Interpolate::filter_value('option_format', $val);

Indeed a bug -- and probably would never have been caught without
a code read. Thanks; every bit helps.

-- 
Mike Heins
Perusion -- Expert Interchange Consulting    http://www.perusion.com/
phone +1.513.523.7621      <mike at perusion.com>

How far can you open your mind before your brains fall out?


More information about the interchange-users mailing list