[Html-widget] [Catalyst] HTML::Widget - AllOrNone with Select and empty values

Carl Franks fireartist at gmail.com
Thu Aug 3 17:59:20 CEST 2006

On 20/06/06, Adam Sjøgren <adsj at novozymes.com> wrote:
> On Fri, 5 May 2006 15:19:33 +0100, Carl wrote:
> > Select elements automatically get an "In" contraint added, containing
> > the keys from the element's options().
> > This probably ought to be over-rideable.
> Attached is a patch that makes it so.
> Let me know if it should be done differently and I will be happy to
> make another patch :-)

Hi Adam,

Many thanks for your contribution, I'm sorry that this patch wasn't
dealt with before.
I didn't want to add another method to the API, as I was unsure about
whether the auto-In-constraint behaviour would be staying.

I've just fixed the In constraint, so that it doesn't fail if the in()
list is empty - this means that you should no longer experience this
unexpected behaviour.
This is fixed is svn version 46 - keep an eye on this mailing list for
when it gets released to cpan.

Please let us know if you have any other problems, or other feedback.


More information about the Html-widget mailing list