Re: [html-formfu] Bug in get_element: fails to work when auto_fieldset is on

2008-10-05 Thread Moritz Onken
A statement like my $s = $form->get_element({type=>'Select'}); will return nothing. However, if I remove the auto_fieldset above, the return will be correct. My research indicates that the bug is in the _get_elements routine, around line 50. If auto_fieldset is on, then $elements is an

[html-formfu] Bug in get_element: fails to work when auto_fieldset is on

2008-10-05 Thread Matija Grabnar
Given a form definition like this: indicator: submit auto_fieldset: 1 default_model: DBIC model: DBIC auto_label: %n elements: - type: Text name: name - type: Checkbox name: check1 default_empty_value: 1 label: Check here for 1 - type: Checkbox name: check2 default