formbuilder toTemplateVars is now complete and tested

This commit is contained in:
Doug Bell 2011-04-12 21:26:20 -05:00
parent 67918361e6
commit 04a420e0bd
7 changed files with 254 additions and 105 deletions

View file

@ -91,9 +91,10 @@ sub addFieldAt {
for my $obj ( @{$self->objects} ) {
next unless blessed $obj;
# A field isn't allowed to have child objects
if ( !$obj->can('does') || !$obj->does('WebGUI::FormBuilder::Role::HasObjects') ) {
push @{$self->fields}, $obj;
}
next if ( $obj->can('does') && $obj->does('WebGUI::FormBuilder::Role::HasObjects') );
next if $obj->isa('WebGUI::FormBuilder::Tabset');
push @{$self->fields}, $obj;
}
return $field;
}