Fix a double me, and don't remake the object since we cached it earlier.

This commit is contained in:
Colin Kuskie 2010-09-16 16:07:35 -07:00
parent 0787359c24
commit dadb7cae00

View file

@ -955,7 +955,6 @@ sub getRecordTemplateVars {
if ($field->{type} eq "HTMLArea") { if ($field->{type} eq "HTMLArea") {
$field->{htmlAreaRichEditor} = $self->htmlAreaRichEditor ; $field->{htmlAreaRichEditor} = $self->htmlAreaRichEditor ;
} }
my $form = $self->_createForm($field, $value);
$value = $form->getValueAsHtml; $value = $form->getValueAsHtml;
my %fieldProperties = ( my %fieldProperties = (
"form" => $form->toHtml, "form" => $form->toHtml,