2008/11/21 Ronald J Kimball <[EMAIL PROTECTED]>: > I just discovered a little bug in the MinMaxFields constraint. The code > that sets the default value for $max assumes that $others is an array ref: > > my $max = defined $self->maximum ? $self->maximum > : 1 + scalar @$others; > > However, $others can sometimes be a single value, which is accounted for > later in the code: > > push @names, ref $others ? @{$others} : $others; > > > Patch attached. Includes a new test that fails with the existing code and > succeeds with the patch applied.
Thanks, I've applied this to svn. Cheers, Carl _______________________________________________ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu