Re: [html-formfu] DateTime Element and default values less than 10

2009-06-01 Thread Carl Franks
2009/6/1 Mike Glen : > Carl Franks wrote: >> >> This will be related to 0-padded numbers (01, 02, etc) >> but it should be handled correctly already. >> >> Can you check that you're calling $form->process() after >> $form->model->default_values() and before rendering the form? >> > Thanks, that fix

Re: [html-formfu] DateTime Element and default values less than 10

2009-06-01 Thread Mike Glen
Carl Franks wrote: This will be related to 0-padded numbers (01, 02, etc) but it should be handled correctly already. Can you check that you're calling $form->process() after $form->model->default_values() and before rendering the form? Cheers, Carl Thanks, that fixes it. I'm using catalys

Re: [html-formfu] DateTime Element and default values less than 10

2009-06-01 Thread Carl Franks
2009/6/1 Mike Glen : > I'm using DateTime elements on a form and if the default value passes to it > using $form->model->default_values( ) has an hour or minute value of less > than 10 it isn't selected in the form > (it's ok if the default value in the yml is less than 10) This will be related to