[Catalyst] Date field error

Carl Franks fireartist at gmail.com
Mon Dec 10 09:40:06 GMT 2007


On 10/12/2007, Kalman Kiss <ssikiss at zalaszam.hu> wrote:
> Hi,
>
> im using FormFu through Catalyst::Controller::HTML::FormFu and i get an
> exception, when i include the following date field
> spec in the yml file:
>
>   - type: Date
>     name: birthdate
>     label: 'Születési idő'
>     day:
>       - prefix: "- Nap -"
>     month:
>       - prefix: "- Hónap -"
>     year:
>       - prefix: "- Év -"
>     auto_inflate: 1

The methods day() month() and year() expect hashrefs, not arrayrefs,
so that should be:

 - type: Date
   name: birthdate
   label: 'Születési idő'
   day:
     prefix: "- Nap -"
   month:
     prefix: "- Hónap -"
   year:
     prefix: "- Év -"
   auto_inflate: 1

btw, this isn't really anything to do with catalyst, so should
probably have been posted to the formfu list
(html-formfu at lists.scsys.co.uk)

Cheers,
Carl


More information about the Catalyst mailing list