[html-formfu] Problems with Repeatable and ->update

Moritz Onken onken at houseofdesign.de
Mon Apr 14 17:23:29 BST 2008


Hi,

I'm using trunk rev. 991.
My yaml file looks like this:

elements:
   - type: Hidden
     name: count
   - type: Repeatable
     nested_name: recall_schedules
     counter_name: count
     model_config:
       DBIC:
         new_empty_row: start
     elements:
	...

and my code

if ( $form->submitted_and_valid ) {
	my $row =  $c->user->recalls->new({ time => DateTime->now });
	$form->model('DBIC')->update($row);
}

It creates the row object, but not the schedules. Catalyst show these  
params:

.------------------------------------- 
+--------------------------------------.
| Parameter                           |  
Value                                |
+------------------------------------- 
+--------------------------------------+
| count                               |  
1                                    |
| recall_schedules.email_1            |  
1                                    |
| recall_schedules.start_1            |  
10.02.1985                           |
| recall_schedules.starttime_1        |  
9:00                                 |
| title                               |  
Something                            |
'------------------------------------- 
+--------------------------------------'

Did I miss something? I know this is still trunk :-)

cheers

moritz



More information about the HTML-FormFu mailing list