make FormBuilder use toTemplateVars for fields

This commit is contained in:
Doug Bell 2010-12-09 18:31:42 -06:00
parent ca42a0544d
commit 60cc89fb4f
3 changed files with 15 additions and 11 deletions

View file

@ -712,7 +712,11 @@ to re-create it in a template.
sub toTemplateVars {
my ( $self ) = @_;
my %var = %{$self->get};
my %var = (
%{$self->get},
label => $self->getLabel,
label_nohover => $self->get('label'),
);
return \%var;
}