2009/3/8 Moritz Onken <on...@houseofdesign.de>: > For HashRef to work properly I need a method to unset the values of each > field. > I tried that with: > > map { eval { $_->default(undef) } } (grep { $_->is_field } > @{$form->get_all_elements}); > > which works fine, but fails on a Date element with: > > Invalid date format: at lib/HTML/FormFu/Element/Date.pm line 150 > > Is this a Date (DateTime) bug because you cannot set it to undef or should I > try another > way to set these fields to undef.
I think it's reasonable to be able to do $date->default( undef ); but are you sure that's what's triggering this error? line 150 is inside a: elsif ( defined( $default = $self->default ) ) Carl _______________________________________________ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu